public function hydrate($row)
    {
        $hydrated = $this->_schema->hydrate($row);

        // apply any eager-loaded includes
        foreach($this->_includes as $prop=>$includer) {
            $hydrated->override($prop, function($prop, $obj) use($includer) {
                return $includer->get($obj, $prop);
            });
        }

        return $hydrated;
    }
public function hydrate($row)
    {
        $hydrated = $this->_schema->hydrate($row);

        // apply any eager-loaded includes
        foreach($this->_includes as $prop=>$includer) {
            $hydrated->override($prop, function($prop, $obj) use($includer) {
                return $includer->get($obj, $prop);
            });
        }

        return $hydrated;
    }
public function hydrate ( $ row ) { $ hydrated = $ this -> _schema -> hydrate ( $ row ) ; // apply any eager-loaded includes foreach ( $ this -> _includes as $ prop => $ includer ) { $ hydrated -> override ( $ prop , function ( $ prop , $ obj ) use ( $ includer ) { return $ includer -> get ( $ obj , $ prop ) ; } ) ; } return $ hydrated ; }
Hydrates a row to a DomainObject
Hydrates a row to a DomainObject