Portugao / MUTicket

MUTicket will handle Tickets for Support
http://webdesign-in-bremen.com
3 stars 0 forks source link

Deletion of tickets does not work #75

Closed Portugao closed 9 years ago

Portugao commented 9 years ago

Hmmhmm...is gone now. Don't know what reasoned this issue. Feel free to reopen.

Portugao commented 9 years ago

Already there....

Portugao commented 9 years ago

Caused by this code:


    /**
     * Bidirectional - One parent [ticket] has many children [tickets] (INVERSE SIDE).
     *
     * @ORM\OneToMany(targetEntity="MUTicket_Entity_Ticket", mappedBy="parent", cascade={"remove"})
     * @ORM\JoinTable(name="muticket_parentchildren",
             *      joinColumns={@ORM\JoinColumn(name="parent_id", referencedColumnName="id" )
             },
             *      inverseJoinColumns={@ORM\JoinColumn(name="id", referencedColumnName="id" )
            }
             * )
     * @ORM\OrderBy({"createdDate" = "ASC"})
     * @var MUTicket_Entity_Ticket[] $children.
     */
    protected $children = null;
Portugao commented 9 years ago

Delete the cascade remove will fix it; we have to delete the children by listener or by another way.

Portugao commented 9 years ago

Not able to reproduce at the moment. Set all to basic state. Close it. Feel free to reopen.