Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

ODM Embeded Documents

I have a company collection with a embed address object.

class Company extends Collection
     * @var \Collection\Address
    public $address;
class Address

When i fetch a company the address property is a array of properties and not a Address object. How can i map this in phalcon?

thx this works but i was thinking a odm does this for me