nciri / zend-db-model-generator

Automatically exported from code.google.com/p/zend-db-model-generator
0 stars 0 forks source link

no toObject #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
thank you for your comments.
this function was added to the git branch and will be in the next official 
release of zdmg.

Original comment by kfirufk@gmail.com on 26 Jul 2012 at 9:19