public function setMainContact(ContactEntity $mainContact = null) { $this->entity->setMainContact($mainContact); return $this; }