You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.
That is a solution. But in my opnion, it's not good. Cause when you display Embedded Document info using $data->embeddedClassName->fieldname will give an error called trying to get property on a non-object.
So I'd ike to change the content of EMongoDocument::setAttributes() to this which can solve the problem more suitable:
if($this->hasEmbeddedDocuments())
{
$attributes=array_flip($safeOnly ? $this->getSafeAttributeNames() : $this->attributeNames());
After inserted the document. While "$user = User::model()->find();" I've got fatal error as following:
Fatal error: Call to a member function setAttributes() on a non-object in...
Document link: http://canni.github.com/YiiMongoDbSuite/xhtml/basic.simple-embedded-document.html
The text was updated successfully, but these errors were encountered: