Hi guys.
I wonder if I have to backup and redo my BD with the same.

Entity Main;
....
  /**
     * @var \User\Entity\User
     * 
     * @ORM\OneToMany(targetEntity="\User\Entity\User" , 
 mappedBy="school", cascade={"remove"}, orphanRemoval=true, indexBy="usrId")
     */
    private $users;


Entity User;
....
    /**
     * @var \Main\Entity\Main
     *
     * @ORM\ManyToOne(targetEntity="\Main\Entity\Main", inversedBy="users"))
     * @ORM\JoinColumns({
     * @ORM\JoinColumn(name="main_id", referencedColumnName="main_id")
     * })
     */
    private $main;


$service:
$repo = $this->em->getReposytory($entity);
$generateClone = $repo->find($id);

Do I'm using generateClone as a mirror for backup?

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to