protected function getRelationsToProxy()
    {
        $proxies = [];
        $attributes = $this->getEntityAttributes();

        foreach ($this->entityMap->getNonEmbeddedRelationships() as $relation) {
            //foreach ($this->entityMap->getRelationships() as $relation) {

            if (!array_key_exists($relation, $attributes) || is_null($attributes[$relation])) {
                $proxies[] = $relation;
            }
        }

        return $proxies;
    }
protected function getRelationsToProxy()
    {
        $proxies = [];
        $attributes = $this->getEntityAttributes();

        foreach ($this->entityMap->getNonEmbeddedRelationships() as $relation) {
            //foreach ($this->entityMap->getRelationships() as $relation) {

            if (!array_key_exists($relation, $attributes) || is_null($attributes[$relation])) {
                $proxies[] = $relation;
            }
        }

        return $proxies;
    }
protected function getRelationsToProxy ( ) { $ proxies = [ ] ; $ attributes = $ this -> getEntityAttributes ( ) ; foreach ( $ this -> entityMap -> getNonEmbeddedRelationships ( ) as $ relation ) { //foreach ($this->entityMap->getRelationships() as $relation) { if ( ! array_key_exists ( $ relation , $ attributes ) || is_null ( $ attributes [ $ relation ] ) ) { $ proxies [ ] = $ relation ; } } return $ proxies ; }
Determine which relations we have to build proxy for, by parsing
attributes and finding methods that aren't set.

@return array
Determine which relations we have to build proxy for by parsing attributes and finding methods that aren t set .