Lines Matching refs:model
13 protected $model;
125 public function __construct(Model $model) {
126 $this->model = $model;
144 $sth = $this->model->db->prepare($q);
147 array($this->model, $defaults));
163 $sth = $this->model->db->prepare($q);
174 $sth = $this->model->db->prepare($q);
192 $sth = $this->model->db->prepare($q);
196 array($this->model, $defaults));
218 $obj = new $object_name($this->model, $defaults);
223 $this->model->sqlite->query('BEGIN TRANSACTION');
227 $this->model->sqlite->query('COMMIT TRANSACTION');
231 $this->model->sqlite->query('ROLLBACK');
258 $sth = $this->model->db->prepare($query);
264 $reflectionProperty->setValue($obj, $this->model->db->lastInsertId());
290 $sth = $this->model->db->prepare($query);
314 $sth = $this->model->db->prepare($q);