null], [['idNotificacion', 'idUsuario'], 'integer'], [['parametros', 'detalle'], 'safe'], [['nombre', 'plantilla'], 'string', 'max' => 100], [['telefono'], 'string', 'max' => 10], [['idNotificacion'], 'exist', 'skipOnError' => true, 'targetClass' => Notificacion::class, 'targetAttribute' => ['idNotificacion' => 'id']], [['idUsuario'], 'exist', 'skipOnError' => true, 'targetClass' => Usuario::class, 'targetAttribute' => ['idUsuario' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'idNotificacion' => 'Id Notificacion', 'idUsuario' => 'Id Usuario', 'nombre' => 'Nombre', 'telefono' => 'Telefono', 'parametros' => 'Parametros', 'detalle' => 'Detalle', 'plantilla' => 'Plantilla', ]; } /** * Gets query for [[notificacion]]. * * @return \yii\db\ActiveQuery */ public function getNotificacion() { return $this->hasOne(Notificacion::class, ['id' => 'idNotificacion']); } /** * Gets query for [[usuario]]. * * @return \yii\db\ActiveQuery */ public function getUsuario() { return $this->hasOne(Usuario::class, ['id' => 'idUsuario']); } }