public function createCollectionManyHasOne(PropertyMetadata $metadata, IEntity $parent) { $collection = $this->findAll(); $collection->setRelationshipMapping(new RelationshipMapperManyHasOne($metadata), $parent); return $collection; }