1
0
mirror of synced 2025-01-18 06:21:40 +03:00

Small note on unlink all

This commit is contained in:
jackbravo 2007-09-12 23:29:02 +00:00
parent 404338f46f
commit 2bde9f6692

View File

@ -39,6 +39,9 @@ Another way to {{unlink}} the relationships between related objects is through t
$user = $conn->getTable('User')->find(5);
$user->unlink('Group', array(0, 1));
$user->save();
// you can also unlink ALL relationships to Group
$user->unlink('Group');
</code>
While the obvious and convinient way of deleting a link between User and Group would be the following, you still should *NOT* do this: