MCPcopy Create free account
hub / github.com/Rello/analytics / readOwnById

Method readOwnById

lib/Db/DataloadMapper.php:224–234  ·  view source on GitHub ↗
(int $dataloadId)

Source from the content-addressed store, hash-verified

222 }
223
224 public function readOwnById(int $dataloadId) {
225 $sql = $this->db->getQueryBuilder();
226 $sql->from(self::TABLE_NAME)
227 ->select('*')
228 ->where($sql->expr()->eq('id', $sql->createNamedParameter($dataloadId)))
229 ->andWhere($sql->expr()->eq('user_id', $sql->createNamedParameter($this->userId)));
230 $statement = $sql->executeQuery();
231 $result = $statement->fetch();
232 $statement->closeCursor();
233 return $result;
234 }
235
236 /**
237 * truncates fiels do DB-field size

Callers 4

updateMethod · 0.80
copyMethod · 0.80
deleteMethod · 0.80
getDataloadMetadataMethod · 0.80

Calls 2

eqMethod · 0.80
fetchMethod · 0.80

Tested by

no test coverage detected