colinmollenhour / mongodb-php-odm

A simple but powerful set of wrappers for using MongoDb in PHP (also a Kohana 3 module)
BSD 3-Clause "New" or "Revised" License
208 stars 50 forks source link

Mongo_Document::$_references allows to use getter and setter functions for properties #37

Closed panrafal closed 11 years ago

panrafal commented 11 years ago

This way you can easely handle getting and setting of dynamic properties...

colinmollenhour commented 11 years ago

The only reservation I have is the use of [] instead of array().. I personally use [] in non-OSS code, but as PHP 5.3 is still an officially supported version I think it is just a bit too early to drop support for it just for syntax..

panrafal commented 11 years ago

Sorry, I've been developing this along with non-OSS code that uses it :) I'll fix it and commit...

panrafal commented 11 years ago

voilla :v: