22 $this->conditionParser->setCondition($this->condition);
23 parent::prepare($cache);
29 $rows = $this->db->_optExecuteAndFetch($this->statement, $this->tableName, $this->preparedCondition, $params,
$useCache);
31 $rows = $this->db->_optExecuteAndFetchNoCache($this->statement, $params);
33 if ($this->hasIncluded || !$this->allPublic) {
41 if ($this->additionalMembers) {
42 foreach ($rows as $row) {
48 foreach ($rows as $row) {
53 EventsManager::trigger(DAOEvents::GET_ALL, $objects,
$className);
61 $oneToManyQueries = $manyToOneQueries = $manyToManyParsers = [];
62 foreach ($rows as $row) {
63 $object =
DAO::_loadObjectFromRow($this->db, $row,
$className,
$invertedJoinColumns, $manyToOneQueries, $this->oneToManyFields, $this->manyToManyFields, $oneToManyQueries, $manyToManyParsers, $this->memberList, $this->accessors, $this->transformers, $this->primaryKeys);
65 if ($this->additionalMembers) {
68 $objects[$key] = $object;
71 EventsManager::trigger(DAOEvents::GET_ALL, $objects,
$className);
Abstract class for database caching Ubiquity\cache\database$DbCache This class is part of Ubiquity.
Gateway class between database and object model.
Object/relational mapping utilities.
static getPropKeyValues($instance, $props)
Ubiquity\orm\core\prepared$DAOPreparedQueryAll This class is part of Ubiquity.
_parseQueryResponse($rows, $className)
execute($params=[], $useCache=false)
_parseQueryResponseWithIncluded($rows, $className, $useCache)
prepare(?DbCache $cache=null)
Ubiquity\orm\core\prepared$DAOPreparedQuery This class is part of Ubiquity.
addAditionnalMembers($object, $row)
static _loadObjectFromRow(Database $db, $row, $className, $invertedJoinColumns, &$manyToOneQueries, $oneToManyFields, $manyToManyFields, &$oneToManyQueries, &$manyToManyParsers, $memberNames, $accessors, $transformers, $primaryKeys)
static _loadSimpleObjectFromRow(Database $db, $row, $className, $memberNames, $transformers)
static _affectsRelationObjects($className, $classPropKey, $manyToOneQueries, $oneToManyQueries, $manyToManyParsers, $objects, $included, $useCache)