Alan James Sun Mar 10 14:16:39 -0400 2013

Subject: Non Database Properties

I want my model to create new object properties from from fields that were stored in the database combined with some other information.

For example, a user_photo_url property being created from the a base_url, the user_id, a photo_id, and a file extension.

base_url :
user_id : 80
photo_id : dhjs8539
Extension : .png

That would form this “”.

I've tried everything I can think to automatically assign new properties to my PHPActiveRecord objects and can't seem to get it to to work.

Is there anything built in to PHPActiveRecord to help me do this, something like an “after_find” callback.