Refactoring assoc use in SqlResultProvider. Write SqlCriteria.find() method.

This commit is contained in:
Alexander Demidov
2013-09-19 12:54:10 +04:00
parent ba88ac5229
commit 72c38e641d
2 changed files with 15 additions and 6 deletions

View File

@ -17,9 +17,20 @@ class SqlCriteria
*/
private $model;
/**
* @param $model SqlModel
*/
public function __construct($model)
{
$this->model = $model;
}
/**
* @return SqlResultProvider
*/
public function find()
{
return $this->model->find($this->select, $this->distinct, $this->where, $this->order, $this->limit);
}
/**