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