Method |
Description |
|
attach ( mixed $parent, string $field, object | array &$entity ) : boolean |
Attach a new _id reference into $field of $parent. |
|
detach ( mixed $parent, string $field, mixed &$entity ) : boolean |
Removes an _id reference from $field of $parent. |
|
embed ( mixed $parent, string $field, mixed &$entity ) : boolean |
Embeds the given $entity into $field of $parent. This method will also
consider the _id of the $entity in order to update it if it is already
present in $field. |
|
unembed ( mixed $parent, string $field, mixed &$entity ) : boolean |
Removes the given $entity from $field of $parent. This method will
consider the _id of the $entity in order to remove it. |
|