function finish() { foreach ($this->properties as $name => $tuples) { $property = $this->logicalSchema->getProperty($name); $setter = $property->getSetter(); $assembled = $property->getType()->assebmleSet($tuples, $this->strategy); foreach ($assembled as $k => $value) { $this->objects[$k]->{$setter}($value); } } }
function getPropertyList($property, ISqlSelectQuery $query = null) { $property = $this->logicalSchema->getProperty($property); $type = $property->getType(); if (!$query) { $query = EntityQuery::create($this->entity)->get(Projection::property($property)); } $rows = $this->getRows($query); $propertySet = $type->assebmleSet($rows, $this->getFetchStrategy()); return $propertySet; }