/** * Saves a visibility definition type used to categorize an application object. * * @param UmgtVisibilityDefinitionType $proxyType The type to save. * * @return int The id of the type. * * @author Christian Achatz * @version * Version 0.1, 30.04.2010<br /> */ public function saveVisibilityDefinitionType(UmgtVisibilityDefinitionType &$proxyType) { $app = $this->getCurrentApplication(); $proxyType->addRelatedObject('Application2AppProxyType', $app); return $this->getORMapper()->saveObject($proxyType); }