I find it useful to have a toObject method.
Therefore I have added:
model_class.tpl
/**
* Returns an object, keys are the field names.
*
* @see <?=$this->_namespace?>_Model_Mapper_MapperAbstract::toArray()
* @return object
*/
public function toObject()
{
return (object) $this->getMapper()->toArray($this);
}
For consideration for official implimentation
Original issue reported on code.google.com by Aa...@theaudience.com on 18 Jun 2012 at 3:30
Original issue reported on code.google.com by
Aa...@theaudience.com
on 18 Jun 2012 at 3:30