public function getAllBy($field, $value) { $result = parent::getAllBy($field, $value); return $result ? $this->arrayToEntities($result) : null; }