protected function buildEmbeddedObject(array $attributes)
    {
        $resultBuilder = new ResultBuilder($this->getRelatedMapper(), true);

        // TODO : find a way to support eager load within an embedded
        // object.
        $eagerLoads = [];

        return $resultBuilder->build([$attributes], $eagerLoads)[0];
    }
protected function buildEmbeddedObject(array $attributes)
    {
        $resultBuilder = new ResultBuilder($this->getRelatedMapper(), true);

        // TODO : find a way to support eager load within an embedded
        // object.
        $eagerLoads = [];

        return $resultBuilder->build([$attributes], $eagerLoads)[0];
    }
protected function buildEmbeddedObject ( array $ attributes ) { $ resultBuilder = new ResultBuilder ( $ this -> getRelatedMapper ( ) , true ) ; // TODO : find a way to support eager load within an embedded // object. $ eagerLoads = [ ] ; return $ resultBuilder -> build ( [ $ attributes ] , $ eagerLoads ) [ 0 ] ; }
Build an embedded object instance.

@param array $attributes

@return mixed
Build an embedded object instance .