paulmdorr/odd-framework — Issue #13: Add support for "duck typing" on processRelation().
Author: paulmdorr
Created: 2011-10-28 17:10:58+00:00
State: open

Currently, processRelation() is just using the 'class' defined on the relation annotation ($relatedModelName = is_array($value) ? $value['Class'] : $value;). We should let the dev assign an object of a child class to the related property and used that class to get the data.