|
@@ -15,54 +15,54 @@ use Yii;
|
|
|
* @property EventoResumen $EventoResumen
|
|
* @property EventoResumen $EventoResumen
|
|
|
*/
|
|
*/
|
|
|
class EventoResumenDependencia extends \yii\db\ActiveRecord {
|
|
class EventoResumenDependencia extends \yii\db\ActiveRecord {
|
|
|
- /**
|
|
|
|
|
- * {@inheritdoc}
|
|
|
|
|
- */
|
|
|
|
|
- public static function tableName() {
|
|
|
|
|
- return 'EventoResumenDependencia';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * {@inheritdoc}
|
|
|
|
|
+ */
|
|
|
|
|
+ public static function tableName() {
|
|
|
|
|
+ return 'EventoResumenDependencia';
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * {@inheritdoc}
|
|
|
|
|
- */
|
|
|
|
|
- public function rules() {
|
|
|
|
|
- return [
|
|
|
|
|
- [['idEventoResumen', 'idDependencia'], 'required'],
|
|
|
|
|
- [['idEventoResumen', 'idDependencia'], 'default', 'value' => null],
|
|
|
|
|
- [['idEventoResumen', 'idDependencia'], 'integer'],
|
|
|
|
|
- [['clave'], 'string', 'max' => 50],
|
|
|
|
|
- [['idEventoResumen', 'idDependencia'], 'unique', 'targetAttribute' => ['idEventoResumen', 'idDependencia']],
|
|
|
|
|
- [['idDependencia'], 'exist', 'skipOnError' => true, 'targetClass' => Dependencia::class, 'targetAttribute' => ['idDependencia' => 'id']],
|
|
|
|
|
- [['idEventoResumen'], 'exist', 'skipOnError' => true, 'targetClass' => EventoResumen::class, 'targetAttribute' => ['idEventoResumen' => 'id']],
|
|
|
|
|
- ];
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * {@inheritdoc}
|
|
|
|
|
+ */
|
|
|
|
|
+ public function rules() {
|
|
|
|
|
+ return [
|
|
|
|
|
+ [['idEventoResumen', 'idDependencia'], 'required'],
|
|
|
|
|
+ [['idEventoResumen', 'idDependencia'], 'default', 'value' => null],
|
|
|
|
|
+ [['idEventoResumen', 'idDependencia'], 'integer'],
|
|
|
|
|
+ [['clave'], 'string', 'max' => 50],
|
|
|
|
|
+ [['idEventoResumen', 'idDependencia'], 'unique', 'targetAttribute' => ['idEventoResumen', 'idDependencia']],
|
|
|
|
|
+ [['idDependencia'], 'exist', 'skipOnError' => true, 'targetClass' => Dependencia::class, 'targetAttribute' => ['idDependencia' => 'id']],
|
|
|
|
|
+ [['idEventoResumen'], 'exist', 'skipOnError' => true, 'targetClass' => EventoResumen::class, 'targetAttribute' => ['idEventoResumen' => 'id']],
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * {@inheritdoc}
|
|
|
|
|
- */
|
|
|
|
|
- public function attributeLabels() {
|
|
|
|
|
- return [
|
|
|
|
|
- 'idEventoResumen' => 'Id Evento Resumen',
|
|
|
|
|
- 'idDependencia' => 'Id Dependencia',
|
|
|
|
|
- 'clave' => 'Clave',
|
|
|
|
|
- ];
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * {@inheritdoc}
|
|
|
|
|
+ */
|
|
|
|
|
+ public function attributeLabels() {
|
|
|
|
|
+ return [
|
|
|
|
|
+ 'idEventoResumen' => 'Id Evento Resumen',
|
|
|
|
|
+ 'idDependencia' => 'Id Dependencia',
|
|
|
|
|
+ 'clave' => 'Clave',
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * Gets query for [[IdDependencia0]].
|
|
|
|
|
- *
|
|
|
|
|
- * @return \yii\db\ActiveQuery
|
|
|
|
|
- */
|
|
|
|
|
- public function getDependencia() {
|
|
|
|
|
- return $this->hasOne(Dependencia::class, ['id' => 'idDependencia']);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Gets query for [[IdDependencia0]].
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return \yii\db\ActiveQuery
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getDependencia() {
|
|
|
|
|
+ return $this->hasOne(Dependencia::class, ['id' => 'idDependencia']);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * Gets query for [[IdEventoResumen0]].
|
|
|
|
|
- *
|
|
|
|
|
- * @return \yii\db\ActiveQuery
|
|
|
|
|
- */
|
|
|
|
|
- public function getEventoResumen() {
|
|
|
|
|
- return $this->hasOne(EventoResumen::class, ['id' => 'idEventoResumen']);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * Gets query for [[IdEventoResumen0]].
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return \yii\db\ActiveQuery
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getEventoResumen() {
|
|
|
|
|
+ return $this->hasOne(EventoResumen::class, ['id' => 'idEventoResumen']);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|