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