public function hookGet(\Asgard\Hook\Chain $chain, \Asgard\Entity\Entity $entity, $name) {
		$name = strtolower($name);
		if($this->getDataMapper()->hasRelation($this->definition, $name)) {
			if($entity->data['properties'][$name] === null) {
				$entity->set($name, $this->getDataMapper()->getRelated($entity, $name));
				return $entity->data['properties'][$name];
			}
		}
	}
public function hookGet(\Asgard\Hook\Chain $chain, \Asgard\Entity\Entity $entity, $name) {
		$name = strtolower($name);
		if($this->getDataMapper()->hasRelation($this->definition, $name)) {
			if($entity->data['properties'][$name] === null) {
				$entity->set($name, $this->getDataMapper()->getRelated($entity, $name));
				return $entity->data['properties'][$name];
			}
		}
	}
public function hookGet ( \ Asgard \ Hook \ Chain $ chain , \ Asgard \ Entity \ Entity $ entity , $ name ) { $ name = strtolower ( $ name ) ; if ( $ this -> getDataMapper ( ) -> hasRelation ( $ this -> definition , $ name ) ) { if ( $ entity -> data [ 'properties' ] [ $ name ] === null ) { $ entity -> set ( $ name , $ this -> getDataMapper ( ) -> getRelated ( $ entity , $ name ) ) ; return $ entity -> data [ 'properties' ] [ $ name ] ; } } }
Hook for the entity get method.
@param \Asgard\Hook\Chain    $chain
@param \Asgard\Entity\Entity $entity
@param string                $name
Hook for the entity get method .