41 if (
$useCache && isset($this->cache) && ($object = $this->cache->fetch($this->className, \implode(
'_', $params)))) {
45 $params = $this->conditionParser->setKeyValues($params);
47 $row = $this->db->_optExecuteAndFetch($this->statement, $this->tableName, $this->preparedCondition, $params,
$useCache,
true);
49 $row = $this->db->_optExecuteAndFetchNoCache($this->statement, $params,
true);
53 if ($this->hasIncluded || !$this->allPublic) {
54 $oneToManyQueries = $manyToOneQueries = $manyToManyParsers = [];
55 $object =
DAO::_loadObjectFromRow($this->db, $row,
$className, $this->invertedJoinColumns, $manyToOneQueries, $this->oneToManyFields, $this->manyToManyFields, $oneToManyQueries, $manyToManyParsers, $this->memberList, $this->accessors, $this->transformers, $this->primaryKeys);
56 if ($this->hasIncluded) {
64 if ($this->additionalMembers) {
67 EventsManager::trigger(DAOEvents::GET_ONE, $object,
$className);