From f61a5ff81b958111aeb336ab06e9ffa591caee54 Mon Sep 17 00:00:00 2001
From: Ryan Prather <ryan@rkprather.com>
Date: Sun, 21 Jul 2024 21:33:43 -0400
Subject: [PATCH] Delete previous classes

---
 src/Entity/NoteShares.php               | 106 ------------------------
 src/Repository/NoteSharesRepository.php |  43 ----------
 2 files changed, 149 deletions(-)
 delete mode 100644 src/Entity/NoteShares.php
 delete mode 100644 src/Repository/NoteSharesRepository.php

diff --git a/src/Entity/NoteShares.php b/src/Entity/NoteShares.php
deleted file mode 100644
index f68b7da..0000000
--- a/src/Entity/NoteShares.php
+++ /dev/null
@@ -1,106 +0,0 @@
-<?php
-
-namespace App\Entity;
-
-use App\Repository\NoteSharesRepository;
-use Doctrine\ORM\Mapping as ORM;
-
-#[ORM\Entity(repositoryClass: NoteSharesRepository::class)]
-class NoteShares
-{
-    #[ORM\Id]
-    #[ORM\GeneratedValue]
-    #[ORM\Column]
-    private ?int $id = null;
-
-    #[ORM\ManyToOne(inversedBy: 'noteShares')]
-    #[ORM\JoinColumn(nullable: false)]
-    private ?User $owner = null;
-
-    #[ORM\ManyToOne]
-    #[ORM\JoinColumn(nullable: false)]
-    private ?User $share = null;
-
-    #[ORM\ManyToOne]
-    #[ORM\JoinColumn(nullable: false)]
-    private ?Note $note = null;
-
-    /**
-     * Retrieves the ID of the NoteShares entity.
-     *
-     * @return int|null The ID of the NoteShares entity, or null if not set.
-     */
-    public function getId(): ?int
-    {
-        return $this->id;
-    }
-
-    /**
-     * Retrieves the owner of the object.
-     *
-     * @return User|null The owner of the object, or null if not set.
-     */
-    public function getOwner(): ?User
-    {
-        return $this->owner;
-    }
-
-    /**
-     * A description of the entire PHP function.
-     *
-     * @param User|null $owner description
-     * @return static
-     */
-    public function setOwner(?User $owner): static
-    {
-        $this->owner = $owner;
-
-        return $this;
-    }
-
-    /**
-     * Retrieves the share for the current instance.
-     *
-     * @return User|null The user who shares this instance.
-     */
-    public function getShare(): ?User
-    {
-        return $this->share;
-    }
-
-    /**
-     * Set the share for the current instance.
-     *
-     * @param User|null $share The user to set as the share.
-     * @return static The current instance.
-     */
-    public function setShare(?User $share): static
-    {
-        $this->share = $share;
-
-        return $this;
-    }
-
-    /**
-     * Retrieves the associated Note object.
-     *
-     * @return Note|null The associated Note object, or null if not found.
-     */
-    public function getNote(): ?Note
-    {
-        return $this->note;
-    }
-
-    /**
-     * Set the note for this NoteShares entity.
-     *
-     * @param Note|null $note The note to set
-     * @return static
-     */
-    public function setNote(?Note $note): static
-    {
-        $this->note = $note;
-
-        return $this;
-    }
-}
diff --git a/src/Repository/NoteSharesRepository.php b/src/Repository/NoteSharesRepository.php
deleted file mode 100644
index 4ccb99e..0000000
--- a/src/Repository/NoteSharesRepository.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-
-namespace App\Repository;
-
-use App\Entity\NoteShares;
-use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
-use Doctrine\Persistence\ManagerRegistry;
-
-/**
- * @extends ServiceEntityRepository<NoteShares>
- */
-class NoteSharesRepository extends ServiceEntityRepository
-{
-    public function __construct(ManagerRegistry $registry)
-    {
-        parent::__construct($registry, NoteShares::class);
-    }
-
-//    /**
-//     * @return NoteShares[] Returns an array of NoteShares objects
-//     */
-//    public function findByExampleField($value): array
-//    {
-//        return $this->createQueryBuilder('n')
-//            ->andWhere('n.exampleField = :val')
-//            ->setParameter('val', $value)
-//            ->orderBy('n.id', 'ASC')
-//            ->setMaxResults(10)
-//            ->getQuery()
-//            ->getResult()
-//        ;
-//    }
-
-//    public function findOneBySomeField($value): ?NoteShares
-//    {
-//        return $this->createQueryBuilder('n')
-//            ->andWhere('n.exampleField = :val')
-//            ->setParameter('val', $value)
-//            ->getQuery()
-//            ->getOneOrNullResult()
-//        ;
-//    }
-}