]> git.andy128k.dev Git - ipf.git/commitdiff
Roles name are notblank
authorandrevv <andrey.vusaty@gmail.com>
Wed, 5 Jan 2011 16:50:41 +0000 (18:50 +0200)
committerandrevv <andrey.vusaty@gmail.com>
Wed, 5 Jan 2011 16:50:41 +0000 (18:50 +0200)
ipf/auth/models.yml
ipf/auth/models/_generated/BaseRole.php

index 1717ffd3e61d6fa03ff7d71ed46206ac547c84d5..dd4c3531f6a0ceebdf4b9bb1e9befcc331dc5c6b 100644 (file)
@@ -53,6 +53,7 @@ Role:
         name:
             unique: true 
             type: string(255)
+            notblank: true
     relations:
         Permissions:
             class: Permission
index cf1f9fec3d67814a8817dc7eec89ed8134f474a6..a32dd819a38538dd60d6a3600022f32aa80fe85f 100644 (file)
@@ -8,7 +8,7 @@ abstract class BaseRole extends IPF_ORM_Record
   public function setTableDefinition()
   {
     $this->setTableName('auth_role');
-    $this->hasColumn('name', 'string', 255, array('unique' => true, 'type' => 'string', 'length' => '255'));
+    $this->hasColumn('name', 'string', 255, array('unique' => true, 'notblank' => true, 'type' => 'string', 'length' => '255'));
 
     $this->option('type', 'INNODB');
     $this->option('collate', 'utf8_unicode_ci');