public function getProducerName() { if (empty($this->producer)) { return null; } return $this->producer->name; }