src/db/orm/DAO.php
public function findAll($query = null) {
        if ($query === null) {
            $mapping = $this->getMapping();
            $table = $this->escapeIdentifier($mapping['table']);
            $query = 'select * from '.$table;
        }
        return $this->getWorker()->findAll($query);
    }
public function findAll($query = null) {
        if ($query === null) {
            $mapping = $this->getMapping();
            $table = $this->escapeIdentifier($mapping['table']);
            $query = 'select * from '.$table;
        }
        return $this->getWorker()->findAll($query);
    }
public function findAll ( $ query = null ) { if ( $ query === null ) { $ mapping = $ this -> getMapping ( ) ; $ table = $ this -> escapeIdentifier ( $ mapping [ 'table' ] ) ; $ query = 'select * from ' . $ table ; } return $ this -> getWorker ( ) -> findAll ( $ query ) ; }
Find all matching records and convert them to instances of the entity class.

@param  string $query [optional] - SQL query with optional ORM syntax; without a query all instances are returned

@return PersistableObject[]
Find all matching records and convert them to instances of the entity class .