Skip to content

About ManyToMany relation #6

Description

@mikvet

Hello,
great bundle, thanks !
Just a few line to drop a feedback and a question (not really a bug nor a request :)

I have a question ? what is happening on ManyToMany relations ? I have tested this, the relation is not deleted.

class User
{
    /**
     * @var Group[]
     * @ORM\ManyToMany(targetEntity="Sig\MyBundle\Entity\Group", inversedBy="users")
     * @Evence\onSoftDelete(type="CASCADE")
     * @ORM\JoinTable(
     *     name="user_2_group",
     *     joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=false, onDelete="CASCADE")},
     *     inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id", nullable=false, onDelete="CASCADE")}
     * )
     */
    protected $groups;
}

Best regards

Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions