lib/public/AppFramework/Db/Mapper.php
/**
	 * Runs a sql query and returns an array of entities
	 * @param string $sql the prepare string
	 * @param array $params the params which should replace the ? in the sql query
	 * @param int $limit the maximum number of rows
	 * @param int $offset from which row we want to start
	 * @return array all fetched entities
	 * @since 7.0.0
	 */
Runs a sql query and returns an array of entities
@param string $sql the prepare string
@param array $params the params which should replace the . in the sql query
@param int $limit the maximum number of rows
@param int $offset from which row we want to start
@return array all fetched entities
@since 7.0.0
Runs a sql query and returns an array of entities @param string $sql the prepare string @param array $params the params which should replace the . in the sql query @param int $limit the maximum number of rows @param int $offset from which row we want to start @return array all fetched entities @since 7 . 0 . 0
protected function findEntities($sql, array $params=[], $limit=null, $offset=null) {
		$stmt = $this->execute($sql, $params, $limit, $offset);
		$entities = [];
		while($row = $stmt->fetch()){
			$entities[] = $this->mapRowToEntity($row);
		}
		$stmt->closeCursor();
		return $entities;
	}
protected function findEntities ( $ sql , array $ params = [ ] , $ limit = null , $ offset = null ) { $ stmt = $ this -> execute ( $ sql , $ params , $ limit , $ offset ) ; $ entities = [ ] ; while ( $ row = $ stmt -> fetch ( ) ) { $ entities [ ] = $ this -> mapRowToEntity ( $ row ) ; } $ stmt -> closeCursor ( ) ; return $ entities ; }
Runs a sql query and returns an array of entities
 @param string $sql the prepare string
 @param array $params the params which should replace the ?
Runs a sql query and returns an array of entities @param string $sql the prepare string @param array $params the params which should replace the ?