mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-23 04:00:23 +08:00
fixed conflicting property declaration
This commit is contained in:
@ -8,8 +8,6 @@
|
|||||||
|
|
||||||
namespace yii\db;
|
namespace yii\db;
|
||||||
|
|
||||||
use yii\base\InvalidConfigException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ActiveRelation represents a relation between two Active Record classes.
|
* ActiveRelation represents a relation between two Active Record classes.
|
||||||
*
|
*
|
||||||
@ -22,6 +20,9 @@ use yii\base\InvalidConfigException;
|
|||||||
*
|
*
|
||||||
* If a relation involves a pivot table, it may be specified by [[via()]] or [[viaTable()]] method.
|
* If a relation involves a pivot table, it may be specified by [[via()]] or [[viaTable()]] method.
|
||||||
*
|
*
|
||||||
|
* @property array|ActiveRelation $via the query associated with the pivot table. Please call [[via()]]
|
||||||
|
* or [[viaTable()]] to set this property instead of directly setting it.
|
||||||
|
*
|
||||||
* @author Qiang Xue <qiang.xue@gmail.com>
|
* @author Qiang Xue <qiang.xue@gmail.com>
|
||||||
* @since 2.0
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
@ -29,13 +30,6 @@ class ActiveRelation extends ActiveQuery
|
|||||||
{
|
{
|
||||||
use \yii\ar\ActiveRelation;
|
use \yii\ar\ActiveRelation;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var array|ActiveRelation the query associated with the pivot table. Please call [[via()]]
|
|
||||||
* or [[viaTable()]] to set this property instead of directly setting it.
|
|
||||||
*/
|
|
||||||
public $via;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specifies the pivot table.
|
* Specifies the pivot table.
|
||||||
* @param string $tableName the name of the pivot table.
|
* @param string $tableName the name of the pivot table.
|
||||||
|
Reference in New Issue
Block a user