public function getOwner() { if ($this->ownerId && !$this->owner) { $this->owner = User::find($this->ownerId); } return $this->owner; }