What do you mean by "delete a collection"? Clearing all its contents?

$collection->clear() does it.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/


On 19 March 2014 12:11, ibasaw <[email protected]> wrote:

> Thank you jasper it works !
>
> i got just a problem when i want to delete a collection; it doesn't work
>
> I add cascade={"persist", "merge", "remove"} on all properties but change
> nothing.
>
> Is there a particular way to do this; delete a collection ?
>
> --
> 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.
>

-- 
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