Commit b7b08444 authored by Jens Segers's avatar Jens Segers

Readme typo

parent 3fe1abb7
......@@ -428,8 +428,7 @@ Again, you may override the conventional local key by passing a second argument
return $this->embedsMany('Book', 'local_key');
When using embedded documents, they will be stored in a _relation attribute of the parent document. This attribute is hidden by default when using `
toArray` or `toJson`. If you want the attribute to be exposed, add it to `$exposed` property definition to your model:
When using embedded documents, they will be stored in a _relation attribute of the parent document. This attribute is hidden by default when using `toArray` or `toJson`. If you want the attribute to be exposed, add it to `$exposed` property definition to your model:
use Jenssegers\Mongodb\Model as Eloquent;
......
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