|
@@ -13,6 +13,7 @@ use Yii;
|
|
|
* @property string|null $creado
|
|
|
* @property string|null $modificado
|
|
|
* @property string|null $eliminado
|
|
|
+ * @property int|null $idSagarhpa
|
|
|
*
|
|
|
* @property Producto $idPadre
|
|
|
* @property Producto[] $productos
|
|
@@ -34,6 +35,7 @@ class Producto extends ModeloBase {
|
|
|
[['creado', 'modificado', 'eliminado'], 'safe'],
|
|
|
[['id', 'idPadre'], 'string', 'max' => 36],
|
|
|
[['nombre'], 'string', 'max' => 100],
|
|
|
+ [['idSagarhpa'], 'integer'],
|
|
|
[['id'], 'unique'],
|
|
|
[['idPadre'], 'exist', 'skipOnError' => true, 'targetClass' => Producto::class, 'targetAttribute' => ['idPadre' => 'id']],
|
|
|
];
|
|
@@ -48,6 +50,7 @@ class Producto extends ModeloBase {
|
|
|
'nombre' => 'Nombre',
|
|
|
'idPadre' => 'Id Padre',
|
|
|
'creado' => 'Creado',
|
|
|
+ 'idSagarhpa' => 'idSagarhpa',
|
|
|
'modificado' => 'Modificado',
|
|
|
'eliminado' => 'Eliminado',
|
|
|
];
|