function find(array $where = null, $order = null, $limit = 0, $offset = 0, $lock = null) {
		$query = $this->getQueryWriter()->reset();
		$query->write("SELECT * FROM", $this->conn->quoteName($this->name));
		if ($where) {
			$query->write("WHERE")->criteria($where);
		}
		if ($order) {
			$query->write("ORDER BY", $order);
		}
		if ($limit) {
			$query->write("LIMIT", $limit);
		}
		if ($offset) {
			$query->write("OFFSET", $offset);
		}
		if ($lock) {
			$query->write("FOR", $lock);
		}
		return $this->execute($query);
	}
function find(array $where = null, $order = null, $limit = 0, $offset = 0, $lock = null) {
		$query = $this->getQueryWriter()->reset();
		$query->write("SELECT * FROM", $this->conn->quoteName($this->name));
		if ($where) {
			$query->write("WHERE")->criteria($where);
		}
		if ($order) {
			$query->write("ORDER BY", $order);
		}
		if ($limit) {
			$query->write("LIMIT", $limit);
		}
		if ($offset) {
			$query->write("OFFSET", $offset);
		}
		if ($lock) {
			$query->write("FOR", $lock);
		}
		return $this->execute($query);
	}
function find ( array $ where = null , $ order = null , $ limit = 0 , $ offset = 0 , $ lock = null ) { $ query = $ this -> getQueryWriter ( ) -> reset ( ) ; $ query -> write ( "SELECT * FROM" , $ this -> conn -> quoteName ( $ this -> name ) ) ; if ( $ where ) { $ query -> write ( "WHERE" ) -> criteria ( $ where ) ; } if ( $ order ) { $ query -> write ( "ORDER BY" , $ order ) ; } if ( $ limit ) { $ query -> write ( "LIMIT" , $ limit ) ; } if ( $ offset ) { $ query -> write ( "OFFSET" , $ offset ) ; } if ( $ lock ) { $ query -> write ( "FOR" , $ lock ) ; } return $ this -> execute ( $ query ) ; }
Find rows in the table
@param array $where
@param array|string $order
@param int $limit
@param int $offset
@param string $lock
@return mixed
Find rows in the table