本文整理汇总了PHP中app\models\Categories::className方法的典型用法代码示例。如果您正苦于以下问题:PHP Categories::className方法的具体用法?PHP Categories::className怎么用?PHP Categories::className使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\models\Categories
的用法示例。
在下文中一共展示了Categories::className方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIdCategories
/**
* @return \yii\db\ActiveQuery
*/
public function getIdCategories()
{
return $this->hasOne(Categories::className(), ['id' => 'id_categories']);
}
示例2: getCat
/**
* @return \yii\db\ActiveQuery
*/
public function getCat()
{
return $this->hasOne(Categories::className(), ['id' => 'cat_id']);
}
示例3: getCategories
/**
* @return \yii\db\ActiveQuery
*/
public function getCategories()
{
return $this->hasMany(Categories::className(), ['id' => 'category_id'])->viaTable('category_request', ['request_id' => 'id']);
}
示例4: getCategories
/**
* @return \yii\db\ActiveQuery
*/
public function getCategories()
{
return $this->hasMany(Categories::className(), ['id_user' => 'id']);
}
示例5: getCategories
/**
* @return \yii\db\ActiveQuery
*/
public function getCategories()
{
return $this->hasMany(Categories::className(), ['id' => 'category_id'])->viaTable(ProductsCategories::tableName(), ['product_id' => 'id']);
}
示例6: getParent
/**
* @return \yii\db\ActiveQuery
*/
public function getParent()
{
return $this->hasOne(Categories::className(), ['id' => 'id_parent']);
}
示例7: getCategories0
/**
* @return \yii\db\ActiveQuery
*/
public function getCategories0()
{
return $this->hasMany(Categories::className(), ['race_id' => 'id']);
}
示例8: getCategory
public function getCategory()
{
return $this->hasOne(Categories::className(), ['id' => 'categories_id'])->viaTable('sources', ['id' => 'sources_id'])->andWhere('[[active]]=1');
}