public function preracunaj() { if ($this->besedilo) { $this->avtor = $this->besedilo->getAvtor(); } }