36], [['descripcion'], 'string', 'max' => 550], [['id'], 'unique'], [['idConceptoObra'], 'exist', 'skipOnError' => true, 'targetClass' => ConceptosObra::class, 'targetAttribute' => ['idConceptoObra' => 'id']], [['idObra'], 'exist', 'skipOnError' => true, 'targetClass' => Obra::class, 'targetAttribute' => ['idObra' => 'id']], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'idObra' => 'Id Obra', 'idConceptoObra' => 'Id Concepto Obra', 'cantidad' => 'Cantidad', 'descripcion' => 'Descripcion', 'fechaCompra' => 'Fecha Compra', 'creado' => 'Creado', 'modificado' => 'Modificado', 'eliminado' => 'Eliminado', ]; } /** * Gets query for [[IdConceptoObra0]]. * * @return \yii\db\ActiveQuery */ public function getConceptoObra() { return $this->hasOne(ConceptosObra::class, ['id' => 'idConceptoObra']); } /** * Gets query for [[IdObra0]]. * * @return \yii\db\ActiveQuery */ public function getObra() { return $this->hasOne(Obra::class, ['id' => 'idObra']); } }