/** * @param \obo\Carriers\QueryCarrier $specification * @return \obo\Entity[] */ protected static function entitiesFromDataStorage(\obo\Carriers\QueryCarrier $specification) { $classNameEntity = self::classNameManagedEntity(); if (($propertyNameForSoftDelete = $classNameEntity::entityInformation()->propertyNameForSoftDelete) !== "") { $specification->where("AND {{$propertyNameForSoftDelete}} = " . \obo\Interfaces\IQuerySpecification::PARAMETER_PLACEHOLDER, FALSE); } $entities = new \obo\Carriers\DataCarrier(); foreach (self::rawDataForSpecification($specification) as $data) { $entity = self::entityFromRawData($data); $entities->setValueForVariableWithName($entity, $entity->primaryPropertyValue()); } return $entities; }