We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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