|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
-
- namespace common\models;
-
- use Yii;
-
- /**
- * This is the model class for table "etablissement".
- *
- * @property integer $id
- * @property string $nom
- * @property string $siret
- * @property string $logo
- * @property string $photo
- * @property string $description
- * @property string $code_postal
- * @property string $ville
- */
- class Etablissement extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'etablissement';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['nom', 'siret'], 'required'],
- [['description'], 'string'],
- [['nom', 'siret', 'logo', 'photo', 'code_postal', 'ville'], 'string', 'max' => 255],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'nom' => 'Nom',
- 'siret' => 'Siret',
- 'logo' => 'Logo',
- 'photo' => 'Photo',
- 'description' => 'Description',
- 'code_postal' => 'Code postal',
- 'ville' => 'Ville',
- ];
- }
- }
|