Saving nulls #49

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

Comments

Projects
None yet
1 participant
@gblizycki

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 join this conversation on GitHub. Already have an account? Sign in to comment