/** * Set currently loaded model id * @param int $id */ public function setId($id) { if (is_null($this->id)) { $this->id = $id; $this->instance($this->repository->find($id)); } }
/** * Set currently loaded model id * @param int $id */ public function setId($id) { if (is_null($this->id)) { $this->id = $id; $this->instance($this->repository->find($id)); } }