public function setRelationshipMapping(IRelationshipMapper $mapper = null, IEntity $parent = null) { $this->relationshipMapper = $mapper; return $this; }