255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', 'places' => 'Places', 'type' => 'Type', 'slug' => 'Slug', ]; } /** * Gets query for [[Orders]]. * * @return \yii\db\ActiveQuery */ public function getOrders() { return $this->hasMany(Order::class, ['table_id' => 'id']); } }