예제 #1
0
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new TurnoPeer();
     }
     return self::$peer;
 }
예제 #2
0
 public function rules()
 {
     return array_merge(parent::rules(), array(array('nombre', 'required', 'on' => 'create')));
 }