Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Saving nulls #49

Open
gblizycki opened this issue Aug 29, 2011 · 0 comments
Open

Saving nulls #49

gblizycki opened this issue Aug 29, 2011 · 0 comments

Comments

@gblizycki
Copy link

Maybe i'm wrong but extensions saves null to database. Simple fix to this is:
(in EMongoEmbeddedDocument.php line 304)

if($property->isPublic() && !$property->isStatic())

change to

if($property->isPublic() && !$property->isStatic() && ($this->$name!=null || $name=='_id'))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant