public function getVlan() { $this->__load(); return parent::getVlan(); }
/** * Function which can be over-ridden to perform any pre-deletion tasks * * You can stop the deletion by returning false but you should also add a * message to explain why. * * @param \Entities\IPv4Address $object The Doctrine2 entity to delete * @return bool Return false to stop / cancel the deletion */ protected function preDelete($object) { if ($object->getVlanInterface()) { $this->addMessage('This IP address is assigned to a VLAN interface. Please remove <a href="' . OSS_Utils::genUrl('vlan-interface', 'edit', false, ['id' => $object->getVlanInterface()->getId()]) . '">this assignment</a> before deleting the address.', OSS_Message::ERROR); return false; } return true; }