null], [['idGrupo'], 'integer'], [['nombre', 'url'], 'required'], [['fotoEvento'], 'string'], [['fechaInicio', 'fechaFinal', 'creado', 'modificado', 'eliminado'], 'safe'], [['nombre'], 'string', 'max' => 100], [['descripcion'], 'string', 'max' => 255], [['tag'], 'string', 'max' => 50], [['url'], 'string', 'max' => 155], [['tag'], 'unique'], [['idGrupo'], 'exist', 'skipOnError' => true, 'targetClass' => Grupo::className(), 'targetAttribute' => ['idGrupo' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'idGrupo' => 'Id Grupo', 'nombre' => 'Nombre', 'descripcion' => 'Descripcion', 'fotoEvento' => 'Foto Evento', 'tag' => 'Tag', 'url' => 'Url', 'fechaInicio' => 'Fecha Inicio', 'fechaFinal' => 'Fecha Final', 'creado' => 'Creado', 'modificado' => 'Modificado', 'eliminado' => 'Eliminado', ]; } /** * Gets query for [[grupo]]. * * @return \yii\db\ActiveQuery */ public function getGrupo() { return $this->hasOne(Grupo::className(), ['id' => 'idGrupo']); } /** * Gets query for [[resultados]]. * * @return \yii\db\ActiveQuery */ public function getResultados() { return $this->hasMany(Resultado::className(), ['idEvento' => 'id']); } }