<?php /** * This is the model base class for the table "mzgtbancoautores_carreras". * DO NOT MODIFY THIS FILE! It is automatically generated by giix. * If any changes are necessary, you must set or override the required * property or method in class "MzgtbancoautoresCarreras". * * Columns in table "mzgtbancoautores_carreras" available as properties of the model, * and there are no model relations. * * @property integer $PK_MZGTBANCOAUTORES * @property integer $PK_MZGTCARRERAS * */ abstract class BaseMzgtbancoautoresCarreras extends GxActiveRecord { public static function model($className=__CLASS__) { return parent::model($className); } public function tableName() { return 'mzgtbancoautores_carreras'; } public static function label($n = 1) { return Yii::t('app', 'MzgtbancoautoresCarreras|MzgtbancoautoresCarrerases', $n); } public static function representingColumn() { return array( 'PK_MZGTBANCOAUTORES', 'PK_MZGTCARRERAS', ); } public function rules() { return array( array('PK_MZGTBANCOAUTORES, PK_MZGTCARRERAS', 'required'), array('PK_MZGTBANCOAUTORES, PK_MZGTCARRERAS', 'numerical', 'integerOnly'=>true), array('PK_MZGTBANCOAUTORES, PK_MZGTCARRERAS', 'safe', 'on'=>'search'), ); } public function relations() { return array( ); } public function pivotModels() { return array( ); } public function attributeLabels() { return array( 'PK_MZGTBANCOAUTORES' => null, 'PK_MZGTCARRERAS' => null, ); } public function search() { $criteria = new CDbCriteria; $criteria->compare('PK_MZGTBANCOAUTORES', $this->PK_MZGTBANCOAUTORES); $criteria->compare('PK_MZGTCARRERAS', $this->PK_MZGTCARRERAS); return new CActiveDataProvider($this, array( 'criteria' => $criteria, )); } }