bf807468
Alex Savenko
first commit
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
namespace app\models;
use app\models\ProductsBrends;
class Brends extends \yii\db\ActiveRecord
{
public static function tableName()
{
return 'catalog_brends';
}
public function getProductsBrends()
{
return $this->hasMany(ProductsBrends::className(), ['brend_id' => 'id']);
}
}
|