public function __construct($options = null)
 {
     $this->_spec['validators'] += array('parentId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Ericsson_OrganizationExistsById' => array('breakChainOnFailure' => true, 'organizationType' => OrgCustomerModel::PARENT_ORG_TYPE)), 'description' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 50, 'min' => 5, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'billingCycleStart' => array('NotEmpty' => array('breakChainOnFailure' => true), 'BillingCycleStartValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'currency' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'Enum_Currency' => array('breakChainOnFailure' => true)), 'sector' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'Int' => array('breakChainOnFailure' => true), 'Enum_CompanySector' => array('breakChainOnFailure' => true)), 'companyType' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'Int' => array('breakChainOnFailure' => true), 'Enum_CompanyType' => array('breakChainOnFailure' => true)), 'primaryContactAddress' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'primaryContactAddressIsCompanyAddress', 'value' => false), 'AddressValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'shippingAddressIsCompanyAddress' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'shippingAddress' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'shippingAddressIsCompanyAddress', 'value' => false), 'AddressValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'billingContactIsPrimaryContact' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'billingContact' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'billingContactIsPrimaryContact', 'value' => false), 'ContactValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'billingContactAddressIsCompanyAddress' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'billingContactAddress' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'billingContactAddressIsCompanyAddress', 'value' => false), 'AddressValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'defaultBillingAccount' => array('NotEmpty' => array('breakChainOnFailure' => true), 'BillingAccountValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'billingAccounts' => array('Array' => array('unique' => 'billingAccountName', 'prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('BillingAccountValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)))), 'crmId_1' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 64, 'encoding' => "UTF-8", 'breakChainOnFailure' => true), 'Ericsson_OrganizationNotExistsByCrmId1' => array('breakChainOnFailure' => true, 'organizationType' => OrgCustomerModel::ORG_TYPE)), 'crmId_2' => array('StringLength' => array('max' => 64, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'taxes' => array('Collection' => array('validators' => array('tax' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('TaxValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))), 'ArrayRepitedItemLimit' => array('breakChainOnFailure' => true, 'checkField' => 'name'))))), 'discounts' => array('Collection' => array('validators' => array('general' => array('Array' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('DiscountValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))), 'ArrayRepitedItemLimit' => array('breakChainOnFailure' => true, 'checkField' => 'name'))))), 'vpns' => array('Collection' => array('prefixPath' => array(\App_Validate_Collection::VALIDATE => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/")), 'validators' => array('vpn' => array('Array' => array('breakChainOnFailure' => true, 'prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('VpnValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true))), 'VpnListValidate' => array('breakChainOnFailure' => true))))), 'trialDuration' => array('Int' => array('breakChainOnFailure' => true), 'Between' => array('breakChainOnFailure' => true, 'min' => 1, 'max' => 999)), 'timeAndConsumptionVoucherIsEnabled' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'isBoolean' => array('breakChainOnFailure' => true)), 'inactiveNewFees' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'Organization\\Types\\InactiveNewFeesValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'lteEnabled' => array('isBoolean' => array('breakChainOnFailure' => true), 'Organization\\Lte\\LteSimValidate' => array('breakChainOnFailure' => true), 'Organization\\Lte\\LteProviderValidate' => array('breakChainOnFailure' => true)));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec['validators'] += array('parentId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Ericsson_OrganizationExistsById' => array('breakChainOnFailure' => true, 'organizationType' => OrgAggregatorModel::PARENT_ORG_TYPE)), 'description' => array('NotEmpty' => array('breakChainOnFailure' => true), 'StringLength' => array('max' => 50, 'min' => 5, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'sector' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'Enum_CompanySector' => array('breakChainOnFailure' => true)), 'companyType' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'Int' => array('breakChainOnFailure' => true), 'Enum_CompanyType' => array('breakChainOnFailure' => true)), 'otherContact_1' => array('ValidateOne' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('ContactValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'EmptyContactValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)))), 'otherContact_2' => array('ValidateOne' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('ContactValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'EmptyContactValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)))), 'otherContact_3' => array('ValidateOne' => array('prefixPath' => array("\\Application\\Model\\Validate\\" => APPLICATION_PATH . "/modules/default/models/Validate/"), 'validators' => array('ContactValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true), 'EmptyContactValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)))), 'billingAddressIsCompanyAddress' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'billingAddress' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'billingAddressIsCompanyAddress', 'value' => false), 'AddressValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'shippingAddressIsCompanyAddress' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'shippingAddress' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'shippingAddressIsCompanyAddress', 'value' => false), 'AddressValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)));
     parent::__construct($options);
 }
 public function __construct($options = null)
 {
     $this->_spec['validators'] += array('parentId' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Ericsson_OrganizationExistsById' => array('breakChainOnFailure' => true, 'organizationType' => OrgServiceProviderModel::PARENT_ORG_TYPE)), 'commercialName' => array('StringLength' => array('max' => 50, 'min' => 5, 'encoding' => "UTF-8", 'breakChainOnFailure' => true), 'regex' => array('pattern' => "/^[\\d\\w\\s\\_@\\-\\.\\'\\p{L}]{5,50}\$/u", 'breakChainOnFailure' => true)), 'GGSNProvisioning' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'InArray' => array('haystack' => array(true, false), 'strict' => true, 'breakChainOnFailure' => true)), 'pluralSIMProvisioning' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'InArray' => array('haystack' => array(true, false), 'strict' => true, 'breakChainOnFailure' => true)), 'fiscalNumber' => array('StringLength' => array('max' => 50, 'min' => 5, 'encoding' => "UTF-8", 'breakChainOnFailure' => true), 'regex' => array('pattern' => "/^[a-zA-Z0-9\\-]{5,50}\$/", 'breakChainOnFailure' => true)), 'countryVATNumber' => array('StringLength' => array('max' => 50, 'encoding' => "UTF-8", 'breakChainOnFailure' => true)), 'brand' => array('NotEmpty' => array('breakChainOnFailure' => true), 'Brand' => array('breakChainOnFailure' => true)), 'billingAddressIsCompanyAddress' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'billingAddress' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'billingAddressIsCompanyAddress', 'value' => false), 'AddressValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'shippingAddressIsCompanyAddress' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL)), 'shippingAddress' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'shippingAddressIsCompanyAddress', 'value' => false), 'AddressValidate' => array('breakChainOnFailure' => true, 'acceptArrayAsModel' => true)), 'isEnabler' => array('NotEmpty' => array('breakChainOnFailure' => true, 'type' => \Zend_Validate_NotEmpty::NULL), 'isBoolean' => array('breakChainOnFailure' => true)), 'serviceProviderEnablerId' => array('NotEmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'isEnabler', 'value' => false), 'EmptyIfField' => array('breakChainOnFailure' => true, 'field' => 'isEnabler', 'value' => true), 'Ericsson_OrganizationExistsById' => array('breakChainOnFailure' => true, 'organizationType' => OrgServiceProviderModel::ORG_TYPE)));
     parent::__construct($options);
 }