src/Utipd/MysqlModel/BaseMysqlDirectory.php
public function findOne($vars, $order_by_keys=null, $options=null) {
        foreach ($this->find($vars, $order_by_keys, 1, $options) as $model) {
            return $model;
        }
        return null;
    }
public function findOne($vars, $order_by_keys=null, $options=null) {
        foreach ($this->find($vars, $order_by_keys, 1, $options) as $model) {
            return $model;
        }
        return null;
    }
public function findOne ( $ vars , $ order_by_keys = null , $ options = null ) { foreach ( $ this -> find ( $ vars , $ order_by_keys , 1 , $ options ) as $ model ) { return $ model ; } return null ; }
queries the database for a single object
@param  array $query
@return BaseMysqlModel or null
queries the database for a single object