コード例 #1
0
 public function testRemoveEavAttributeException2()
 {
     $model = new EavSet();
     $this->setExpectedException('CException');
     $model->removeEavAttribute(EavActiveRecord::model());
 }
コード例 #2
0
ファイル: Ad.php プロジェクト: nsdvw/classifieds
 /**
  * Returns the static model of the specified AR class.
  * Please note that you should have this exact method in all your CActiveRecord descendants!
  * @param string $className active record class name.
  * @return Ad the static model class
  */
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }