diff --git a/tests/Stubs/ActiveRecord/Alpha.php b/tests/Stubs/ActiveRecord/Alpha.php index 3977df7e7..ba7ac208b 100644 --- a/tests/Stubs/ActiveRecord/Alpha.php +++ b/tests/Stubs/ActiveRecord/Alpha.php @@ -8,10 +8,6 @@ use Yiisoft\ActiveRecord\ActiveQueryInterface; use Yiisoft\ActiveRecord\ActiveRecord; -/** - * @property int $id - * @property string $string_identifier - */ final class Alpha extends ActiveRecord { public const TABLE_NAME = 'alpha'; diff --git a/tests/Stubs/ActiveRecord/Animal.php b/tests/Stubs/ActiveRecord/Animal.php index 4cd25bfd1..6980673d7 100644 --- a/tests/Stubs/ActiveRecord/Animal.php +++ b/tests/Stubs/ActiveRecord/Animal.php @@ -10,9 +10,6 @@ /** * Class Animal. - * - * @property int $id - * @property string $type */ class Animal extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/Beta.php b/tests/Stubs/ActiveRecord/Beta.php index 1a049c1c3..9e7a9cde2 100644 --- a/tests/Stubs/ActiveRecord/Beta.php +++ b/tests/Stubs/ActiveRecord/Beta.php @@ -8,11 +8,6 @@ use Yiisoft\ActiveRecord\ActiveQueryInterface; use Yiisoft\ActiveRecord\ActiveRecord; -/** - * @property int $id - * @property string $alpha_string_identifier - * @property Alpha $alpha - */ final class Beta extends ActiveRecord { protected int $id; diff --git a/tests/Stubs/ActiveRecord/BitValues.php b/tests/Stubs/ActiveRecord/BitValues.php index d13ae01b7..7d61c2c66 100644 --- a/tests/Stubs/ActiveRecord/BitValues.php +++ b/tests/Stubs/ActiveRecord/BitValues.php @@ -8,9 +8,6 @@ /** * {@see https://github.com/yiisoft/yii2/issues/9006} - * - * @property int $id - * @property bool $val */ final class BitValues extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/Category.php b/tests/Stubs/ActiveRecord/Category.php index 49e4c1561..e151077cc 100644 --- a/tests/Stubs/ActiveRecord/Category.php +++ b/tests/Stubs/ActiveRecord/Category.php @@ -10,9 +10,6 @@ /** * Class Category. - * - * @property int $id - * @property string $name */ final class Category extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/CustomerWithAlias.php b/tests/Stubs/ActiveRecord/CustomerWithAlias.php index 91e36afbc..b5b7aab7a 100644 --- a/tests/Stubs/ActiveRecord/CustomerWithAlias.php +++ b/tests/Stubs/ActiveRecord/CustomerWithAlias.php @@ -8,8 +8,6 @@ /** * Class Customer. - * - * @method CustomerQuery findBySql($sql, $params = []) static */ final class CustomerWithAlias extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/Department.php b/tests/Stubs/ActiveRecord/Department.php index c8a275685..4de951604 100644 --- a/tests/Stubs/ActiveRecord/Department.php +++ b/tests/Stubs/ActiveRecord/Department.php @@ -11,9 +11,6 @@ /** * Class Department - * - * @property int $id - * @property string $title */ final class Department extends ActiveRecord { @@ -33,6 +30,11 @@ public function relationQuery(string $name): ActiveQueryInterface }; } + public function getEmployees(): ActiveRecordInterface + { + return $this->relation('employees'); + } + public function getEmployeesQuery(): ActiveQuery { return $this->hasMany( @@ -42,9 +44,4 @@ public function getEmployeesQuery(): ActiveQuery ] )->inverseOf('department'); } - - public function getEmployees(): ActiveRecordInterface - { - return $this->relation('employees'); - } } diff --git a/tests/Stubs/ActiveRecord/Document.php b/tests/Stubs/ActiveRecord/Document.php index 8eb7cddd2..ef1eb860a 100644 --- a/tests/Stubs/ActiveRecord/Document.php +++ b/tests/Stubs/ActiveRecord/Document.php @@ -6,13 +6,6 @@ use Yiisoft\ActiveRecord\ActiveRecord; -/** - * @property int $id - * @property string $title - * @property string $content - * @property int $version - * @property array $properties - */ final class Document extends ActiveRecord { public int $id; diff --git a/tests/Stubs/ActiveRecord/Dossier.php b/tests/Stubs/ActiveRecord/Dossier.php index bf4a7b6da..56642adc2 100644 --- a/tests/Stubs/ActiveRecord/Dossier.php +++ b/tests/Stubs/ActiveRecord/Dossier.php @@ -10,11 +10,6 @@ /** * Class Dossier - * - * @property int $id - * @property int $department_id - * @property int $employee_id - * @property string $summary */ final class Dossier extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/Employee.php b/tests/Stubs/ActiveRecord/Employee.php index 43fc16e00..5bd94b631 100644 --- a/tests/Stubs/ActiveRecord/Employee.php +++ b/tests/Stubs/ActiveRecord/Employee.php @@ -10,12 +10,6 @@ /** * Class Employee - * - * @property int $id - * @property int $department_id - * @property string $first_name - * @property string $last_name - * @property string $fullName */ final class Employee extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/Item.php b/tests/Stubs/ActiveRecord/Item.php index 43efaabbf..81b8a319b 100644 --- a/tests/Stubs/ActiveRecord/Item.php +++ b/tests/Stubs/ActiveRecord/Item.php @@ -10,10 +10,6 @@ /** * Class Item. - * - * @property int $id - * @property string $name - * @property int $category_id */ final class Item extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/NullValues.php b/tests/Stubs/ActiveRecord/NullValues.php index 18d8a09db..e3fdc1f5a 100644 --- a/tests/Stubs/ActiveRecord/NullValues.php +++ b/tests/Stubs/ActiveRecord/NullValues.php @@ -8,12 +8,6 @@ /** * Class NullValues. - * - * @property int $id - * @property int $var1 - * @property int $var2 - * @property int $var3 - * @property string $stringcol */ final class NullValues extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/Order.php b/tests/Stubs/ActiveRecord/Order.php index 8d2eb6763..89d2d5cab 100644 --- a/tests/Stubs/ActiveRecord/Order.php +++ b/tests/Stubs/ActiveRecord/Order.php @@ -10,11 +10,6 @@ /** * Class Order. - * - * @property int $id - * @property int $customer_id - * @property int $created_at - * @property float $total */ class Order extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/OrderItem.php b/tests/Stubs/ActiveRecord/OrderItem.php index ce09f32ca..6e1cf4a27 100644 --- a/tests/Stubs/ActiveRecord/OrderItem.php +++ b/tests/Stubs/ActiveRecord/OrderItem.php @@ -10,11 +10,6 @@ /** * Class OrderItem. - * - * @property int $order_id - * @property int $item_id - * @property int $quantity - * @property float $subtotal */ final class OrderItem extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/OrderItemWithNullFK.php b/tests/Stubs/ActiveRecord/OrderItemWithNullFK.php index a0b4c96a4..8dd104b33 100644 --- a/tests/Stubs/ActiveRecord/OrderItemWithNullFK.php +++ b/tests/Stubs/ActiveRecord/OrderItemWithNullFK.php @@ -8,11 +8,6 @@ /** * Class OrderItem. - * - * @property int|null $order_id - * @property int|null $item_id - * @property int $quantity - * @property float $subtotal */ final class OrderItemWithNullFK extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/OrderWithNullFK.php b/tests/Stubs/ActiveRecord/OrderWithNullFK.php index 9d0cb7aa1..eea6b5495 100644 --- a/tests/Stubs/ActiveRecord/OrderWithNullFK.php +++ b/tests/Stubs/ActiveRecord/OrderWithNullFK.php @@ -8,11 +8,6 @@ /** * Class Order. - * - * @property int $id - * @property int|null $customer_id - * @property int $created_at - * @property float $total */ final class OrderWithNullFK extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/Profile.php b/tests/Stubs/ActiveRecord/Profile.php index 1953f6bb9..251fab816 100644 --- a/tests/Stubs/ActiveRecord/Profile.php +++ b/tests/Stubs/ActiveRecord/Profile.php @@ -8,9 +8,6 @@ /** * Class Profile. - * - * @property int $id - * @property string $description */ final class Profile extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/ProfileWithConstructor.php b/tests/Stubs/ActiveRecord/ProfileWithConstructor.php index c3059b37b..2b52f57d3 100644 --- a/tests/Stubs/ActiveRecord/ProfileWithConstructor.php +++ b/tests/Stubs/ActiveRecord/ProfileWithConstructor.php @@ -10,9 +10,6 @@ /** * Class Profile. - * - * @property int $id - * @property string $description */ final class ProfileWithConstructor extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/TestTrigger.php b/tests/Stubs/ActiveRecord/TestTrigger.php index d625afcf4..caee9c577 100644 --- a/tests/Stubs/ActiveRecord/TestTrigger.php +++ b/tests/Stubs/ActiveRecord/TestTrigger.php @@ -8,9 +8,6 @@ /** * Class TestTrigger. - * - * @property int $id - * @property string $stringcol */ final class TestTrigger extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/TestTriggerAlert.php b/tests/Stubs/ActiveRecord/TestTriggerAlert.php index 414a85ef5..96ffb6b34 100644 --- a/tests/Stubs/ActiveRecord/TestTriggerAlert.php +++ b/tests/Stubs/ActiveRecord/TestTriggerAlert.php @@ -8,9 +8,6 @@ /** * Class TestTriggerAlert. - * - * @property int $id - * @property string $stringcol */ final class TestTriggerAlert extends ActiveRecord { diff --git a/tests/Stubs/ActiveRecord/Type.php b/tests/Stubs/ActiveRecord/Type.php index 4b4c873ae..bcf8b44c8 100644 --- a/tests/Stubs/ActiveRecord/Type.php +++ b/tests/Stubs/ActiveRecord/Type.php @@ -9,21 +9,6 @@ /** * Model representing type table. - * - * @property int $int_col - * @property int|null $int_col2 DEFAULT 1 - * @property int|null $tinyint_col DEFAULT 1 - * @property int|null $smallint_col DEFAULT 1 - * @property string $char_col - * @property string|null $char_col2 DEFAULT 'something' - * @property string|null $char_col3 - * @property float $float_col - * @property float|null $float_col2 DEFAULT '1.23' - * @property string|null $blob_col - * @property float|null $numeric_col DEFAULT '33.22' - * @property string $time DEFAULT '2002-01-01 00:00:00' - * @property bool $bool_col - * @property bool|null $bool_col2 DEFAULT 1 */ class Type extends ActiveRecord {