public function __toString() { if ($this->ownerId) { return $this->owner->title; } else { return ''; } }