Commit ba43ccd2 authored by Jens Segers's avatar Jens Segers

Readme update

parent b2e0fd72
...@@ -395,6 +395,8 @@ You can remove an embedded document by using the `destroy()` method: ...@@ -395,6 +395,8 @@ You can remove an embedded document by using the `destroy()` method:
$book = $user->books()->first(); $book = $user->books()->first();
$user->books()->destroy($book->_id); $user->books()->destroy($book->_id);
// or
$user->books()->destroy($book);
Again, you may override the conventional local key by passing a second argument to the embedsMany method: Again, you may override the conventional local key by passing a second argument to the embedsMany method:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment