/**
  * @return srCertificateCustomTypeSetting[]
  */
 public function getCustomSettings()
 {
     if (is_null($this->custom_settings)) {
         $this->custom_settings = srCertificateCustomTypeSetting::where(array('type_id' => $this->getId()))->get();
     }
     return $this->custom_settings;
 }
 /**
  * @return srCertificateCustomTypeSetting
  */
 public function getCustomTypeSetting()
 {
     /** @var srCertificateDefinition $definition */
     $definition = srCertificateDefinition::find($this->getDefinitionId());
     return srCertificateCustomTypeSetting::where(array('identifier' => $this->getIdentifier(), 'type_id' => $definition->getTypeId()))->first();
 }