Small note on unlink all
This commit is contained in:
parent
404338f46f
commit
2bde9f6692
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user