app = $app; } /** * Set New Model * @param $model */ public function setupModel($model) { $this->entityModel = $model; $this->criteria = new Collection(); $this->makeModel(); $this->makePresenter(); $this->makeValidator(); $this->boot(); } public function model() { return $this->entityModel; } }