mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Add generic types for ActiveRecord and Container (#20325)
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
This commit is contained in:
@ -11,6 +11,7 @@ use yii\db\ActiveQuery;
|
||||
|
||||
/**
|
||||
* CustomerQuery.
|
||||
* @extends ActiveQuery<CustomerWithAlias>
|
||||
*/
|
||||
class CustomerQuery extends ActiveQuery
|
||||
{
|
||||
|
||||
@ -21,12 +21,12 @@ class CustomerWithAlias extends ActiveRecord
|
||||
public $status2;
|
||||
|
||||
public $sumTotal;
|
||||
|
||||
|
||||
public static function tableName()
|
||||
{
|
||||
return 'customer';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
* @return CustomerQuery
|
||||
|
||||
Reference in New Issue
Block a user