property alias #3

a-musing-moose opened this Issue Apr 29, 2011 · 1 comment


None yet

1 participant


Allow properties to have both a normal named used in code etc, and a 'storage' name for using when storing in the db.


You can now set storage aliases for properties. So for example you could specify a property 'date_created' and in MongoDB it would be stored at 'dc'.

To set a storage alias:

$this->addProperty($aProperty, 'the_alias');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment