src/db/orm/DAO.php
public function get($query, $allowMany = false) {
        $result = $this->find($query, $allowMany);
        if (!$result)
            throw new NoSuchRecordException($query);
        return $result;
    }
public function get($query, $allowMany = false) {
        $result = $this->find($query, $allowMany);
        if (!$result)
            throw new NoSuchRecordException($query);
        return $result;
    }
public function get ( $ query , $ allowMany = false ) { $ result = $ this -> find ( $ query , $ allowMany ) ; if ( ! $ result ) throw new NoSuchRecordException ( $ query ) ; return $ result ; }
Get a single matching record and convert it to an instance of the entity class.

@param  string $query                - SQL query with optional ORM syntax
@param  bool   $allowMany [optional] - whether the query is allowed to return a multi-row result (default: no)

@return PersistableObject

@throws NoSuchRecordException    if the query returned no rows
@throws MultipleRecordsException if the query returned multiple rows and $allowMany was not set to TRUE
Get a single matching record and convert it to an instance of the entity class .