|
- <?php
-
- namespace common\models;
-
- use Yii;
-
- /**
- * This is the model class for table "user_etablissement".
- *
- * @property integer $id_user
- * @property integer $id_etablissement
- */
- class UserEtablissement extends \yii\db\ActiveRecord {
-
- /**
- * @inheritdoc
- */
- public static function tableName() {
- return 'user_etablissement';
- }
-
- /**
- * @inheritdoc
- */
- public function rules() {
- return [
- [['id_user', 'id_etablissement'], 'required'],
- [['id_user', 'id_etablissement'], 'integer'],
- [['actif'], 'boolean'],
- [['credit'],'double'],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels() {
- return [
- 'id_user' => 'Id User',
- 'id_etablissement' => 'Id Etablissement',
- ];
- }
-
- }
|