diff --git a/src/MagicalActiveRecord.php b/src/MagicActiveRecord.php similarity index 95% rename from src/MagicalActiveRecord.php rename to src/MagicActiveRecord.php index f9d482840..fecf94e5b 100644 --- a/src/MagicalActiveRecord.php +++ b/src/MagicActiveRecord.php @@ -29,7 +29,7 @@ * * @see BaseActiveRecord for more information. */ -class MagicalActiveRecord extends BaseActiveRecord implements +class MagicActiveRecord extends BaseActiveRecord implements ArrayableInterface, ArrayAccess, IteratorAggregate, diff --git a/tests/Stubs/MagicActiveRecord/Alpha.php b/tests/Stubs/MagicActiveRecord/Alpha.php index 830262918..07e3b0ac6 100644 --- a/tests/Stubs/MagicActiveRecord/Alpha.php +++ b/tests/Stubs/MagicActiveRecord/Alpha.php @@ -5,13 +5,13 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * @property int $id * @property string $string_identifier */ -final class Alpha extends MagicalActiveRecord +final class Alpha extends MagicActiveRecord { public const TABLE_NAME = 'alpha'; diff --git a/tests/Stubs/MagicActiveRecord/Animal.php b/tests/Stubs/MagicActiveRecord/Animal.php index 2deaf8370..a2a31d2bd 100644 --- a/tests/Stubs/MagicActiveRecord/Animal.php +++ b/tests/Stubs/MagicActiveRecord/Animal.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveRecordInterface; use Yiisoft\Db\Connection\ConnectionInterface; @@ -14,7 +14,7 @@ * @property int $id * @property string $type */ -class Animal extends MagicalActiveRecord +class Animal extends MagicActiveRecord { private string $does; diff --git a/tests/Stubs/MagicActiveRecord/ArrayAndJsonTypes.php b/tests/Stubs/MagicActiveRecord/ArrayAndJsonTypes.php index fb569dcff..64b774c51 100644 --- a/tests/Stubs/MagicActiveRecord/ArrayAndJsonTypes.php +++ b/tests/Stubs/MagicActiveRecord/ArrayAndJsonTypes.php @@ -4,8 +4,8 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; -final class ArrayAndJsonTypes extends MagicalActiveRecord +final class ArrayAndJsonTypes extends MagicActiveRecord { } diff --git a/tests/Stubs/MagicActiveRecord/Beta.php b/tests/Stubs/MagicActiveRecord/Beta.php index 57674fc78..47cd04856 100644 --- a/tests/Stubs/MagicActiveRecord/Beta.php +++ b/tests/Stubs/MagicActiveRecord/Beta.php @@ -5,14 +5,14 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * @property int $id * @property string $alpha_string_identifier * @property Alpha $alpha */ -final class Beta extends MagicalActiveRecord +final class Beta extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/BitValues.php b/tests/Stubs/MagicActiveRecord/BitValues.php index 297d18928..ab097b829 100644 --- a/tests/Stubs/MagicActiveRecord/BitValues.php +++ b/tests/Stubs/MagicActiveRecord/BitValues.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * {@see https://github.com/yiisoft/yii2/issues/9006} @@ -12,6 +12,6 @@ * @property int $id * @property int $val */ -final class BitValues extends MagicalActiveRecord +final class BitValues extends MagicActiveRecord { } diff --git a/tests/Stubs/MagicActiveRecord/BoolAR.php b/tests/Stubs/MagicActiveRecord/BoolAR.php index cced67ec4..2002b28ca 100644 --- a/tests/Stubs/MagicActiveRecord/BoolAR.php +++ b/tests/Stubs/MagicActiveRecord/BoolAR.php @@ -4,9 +4,9 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; -final class BoolAR extends MagicalActiveRecord +final class BoolAR extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/Category.php b/tests/Stubs/MagicActiveRecord/Category.php index 46632ff10..0ebf51c48 100644 --- a/tests/Stubs/MagicActiveRecord/Category.php +++ b/tests/Stubs/MagicActiveRecord/Category.php @@ -5,7 +5,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Category. @@ -13,7 +13,7 @@ * @property int $id * @property string $name */ -final class Category extends MagicalActiveRecord +final class Category extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/Customer.php b/tests/Stubs/MagicActiveRecord/Customer.php index b47b5d3c0..ecd9c575c 100644 --- a/tests/Stubs/MagicActiveRecord/Customer.php +++ b/tests/Stubs/MagicActiveRecord/Customer.php @@ -5,7 +5,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Customer. @@ -16,7 +16,7 @@ * @property string $address * @property int $status */ -class Customer extends MagicalActiveRecord +class Customer extends MagicActiveRecord { public const STATUS_ACTIVE = 1; public const STATUS_INACTIVE = 2; diff --git a/tests/Stubs/MagicActiveRecord/CustomerClosureField.php b/tests/Stubs/MagicActiveRecord/CustomerClosureField.php index 5d848cfda..d90e2981c 100644 --- a/tests/Stubs/MagicActiveRecord/CustomerClosureField.php +++ b/tests/Stubs/MagicActiveRecord/CustomerClosureField.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class CustomerClosureField. @@ -15,7 +15,7 @@ * @property string $address * @property int $status */ -final class CustomerClosureField extends MagicalActiveRecord +final class CustomerClosureField extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/CustomerForArrayable.php b/tests/Stubs/MagicActiveRecord/CustomerForArrayable.php index 3c416c674..e396f3f87 100644 --- a/tests/Stubs/MagicActiveRecord/CustomerForArrayable.php +++ b/tests/Stubs/MagicActiveRecord/CustomerForArrayable.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class CustomerClosureField. @@ -15,7 +15,7 @@ * @property string $address * @property int $status */ -class CustomerForArrayable extends MagicalActiveRecord +class CustomerForArrayable extends MagicActiveRecord { public array $items = []; diff --git a/tests/Stubs/MagicActiveRecord/CustomerWithAlias.php b/tests/Stubs/MagicActiveRecord/CustomerWithAlias.php index 42d2a272b..221e5a612 100644 --- a/tests/Stubs/MagicActiveRecord/CustomerWithAlias.php +++ b/tests/Stubs/MagicActiveRecord/CustomerWithAlias.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Customer. @@ -17,7 +17,7 @@ * * @method CustomerQuery findBySql($sql, $params = []) static */ -final class CustomerWithAlias extends MagicalActiveRecord +final class CustomerWithAlias extends MagicActiveRecord { public const STATUS_ACTIVE = 1; public const STATUS_INACTIVE = 2; diff --git a/tests/Stubs/MagicActiveRecord/CustomerWithConstructor.php b/tests/Stubs/MagicActiveRecord/CustomerWithConstructor.php index 566a7b21a..2feb4ded4 100644 --- a/tests/Stubs/MagicActiveRecord/CustomerWithConstructor.php +++ b/tests/Stubs/MagicActiveRecord/CustomerWithConstructor.php @@ -5,7 +5,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; use Yiisoft\Aliases\Aliases; use Yiisoft\Db\Connection\ConnectionInterface; @@ -19,7 +19,7 @@ * @property int $status * @property ProfileWithConstructor $profile */ -final class CustomerWithConstructor extends MagicalActiveRecord +final class CustomerWithConstructor extends MagicActiveRecord { public function __construct(ConnectionInterface $db, private Aliases $aliases) { diff --git a/tests/Stubs/MagicActiveRecord/CustomerWithProperties.php b/tests/Stubs/MagicActiveRecord/CustomerWithProperties.php index b47d99ccb..2567f5515 100644 --- a/tests/Stubs/MagicActiveRecord/CustomerWithProperties.php +++ b/tests/Stubs/MagicActiveRecord/CustomerWithProperties.php @@ -5,12 +5,12 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Customer with defined properties. */ -class CustomerWithProperties extends MagicalActiveRecord +class CustomerWithProperties extends MagicActiveRecord { protected int $id; protected string $email; diff --git a/tests/Stubs/MagicActiveRecord/DefaultPk.php b/tests/Stubs/MagicActiveRecord/DefaultPk.php index 06d9ada7a..c25bb652e 100644 --- a/tests/Stubs/MagicActiveRecord/DefaultPk.php +++ b/tests/Stubs/MagicActiveRecord/DefaultPk.php @@ -4,9 +4,9 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; -final class DefaultPk extends MagicalActiveRecord +final class DefaultPk extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/Department.php b/tests/Stubs/MagicActiveRecord/Department.php index 2b9a21c90..f71f3bd6a 100644 --- a/tests/Stubs/MagicActiveRecord/Department.php +++ b/tests/Stubs/MagicActiveRecord/Department.php @@ -5,7 +5,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Department @@ -14,7 +14,7 @@ * @property string $title * @property Employee[] $employees */ -final class Department extends MagicalActiveRecord +final class Department extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/Document.php b/tests/Stubs/MagicActiveRecord/Document.php index f6ac266c4..d10690eda 100644 --- a/tests/Stubs/MagicActiveRecord/Document.php +++ b/tests/Stubs/MagicActiveRecord/Document.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * @property int $id @@ -13,7 +13,7 @@ * @property int $version * @property array $properties */ -final class Document extends MagicalActiveRecord +final class Document extends MagicActiveRecord { public function optimisticLock(): ?string { diff --git a/tests/Stubs/MagicActiveRecord/Dossier.php b/tests/Stubs/MagicActiveRecord/Dossier.php index d0d924997..5781c69be 100644 --- a/tests/Stubs/MagicActiveRecord/Dossier.php +++ b/tests/Stubs/MagicActiveRecord/Dossier.php @@ -5,7 +5,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Dossier @@ -16,7 +16,7 @@ * @property string $summary * @property Employee $employee */ -final class Dossier extends MagicalActiveRecord +final class Dossier extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/Employee.php b/tests/Stubs/MagicActiveRecord/Employee.php index 791e45f5b..0e421bfd5 100644 --- a/tests/Stubs/MagicActiveRecord/Employee.php +++ b/tests/Stubs/MagicActiveRecord/Employee.php @@ -5,7 +5,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Employee @@ -18,7 +18,7 @@ * @property Department $department * @property Dossier $dossier */ -final class Employee extends MagicalActiveRecord +final class Employee extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/Item.php b/tests/Stubs/MagicActiveRecord/Item.php index 4f4155b78..f4f8fd632 100644 --- a/tests/Stubs/MagicActiveRecord/Item.php +++ b/tests/Stubs/MagicActiveRecord/Item.php @@ -5,7 +5,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Item. @@ -14,7 +14,7 @@ * @property string $name * @property int $category_id */ -final class Item extends MagicalActiveRecord +final class Item extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/NoExist.php b/tests/Stubs/MagicActiveRecord/NoExist.php index af09964e2..e8ac24737 100644 --- a/tests/Stubs/MagicActiveRecord/NoExist.php +++ b/tests/Stubs/MagicActiveRecord/NoExist.php @@ -4,9 +4,9 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; -final class NoExist extends MagicalActiveRecord +final class NoExist extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/NullValues.php b/tests/Stubs/MagicActiveRecord/NullValues.php index 79716445f..4047cb85c 100644 --- a/tests/Stubs/MagicActiveRecord/NullValues.php +++ b/tests/Stubs/MagicActiveRecord/NullValues.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class NullValues. @@ -15,7 +15,7 @@ * @property int $var3 * @property string $stringcol */ -final class NullValues extends MagicalActiveRecord +final class NullValues extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/Order.php b/tests/Stubs/MagicActiveRecord/Order.php index 79ce0dc6c..b6e6b0db0 100644 --- a/tests/Stubs/MagicActiveRecord/Order.php +++ b/tests/Stubs/MagicActiveRecord/Order.php @@ -5,7 +5,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Order. @@ -15,7 +15,7 @@ * @property int $created_at * @property string $total */ -class Order extends MagicalActiveRecord +class Order extends MagicActiveRecord { public const TABLE_NAME = 'order'; diff --git a/tests/Stubs/MagicActiveRecord/OrderItem.php b/tests/Stubs/MagicActiveRecord/OrderItem.php index c100b5576..23650caaa 100644 --- a/tests/Stubs/MagicActiveRecord/OrderItem.php +++ b/tests/Stubs/MagicActiveRecord/OrderItem.php @@ -5,7 +5,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; use Yiisoft\ActiveRecord\ActiveQuery; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class OrderItem. @@ -15,7 +15,7 @@ * @property int $quantity * @property string $subtotal */ -final class OrderItem extends MagicalActiveRecord +final class OrderItem extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/OrderItemWithNullFK.php b/tests/Stubs/MagicActiveRecord/OrderItemWithNullFK.php index 15b979def..7663631f2 100644 --- a/tests/Stubs/MagicActiveRecord/OrderItemWithNullFK.php +++ b/tests/Stubs/MagicActiveRecord/OrderItemWithNullFK.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class OrderItem. @@ -14,7 +14,7 @@ * @property int $quantity * @property string $subtotal */ -final class OrderItemWithNullFK extends MagicalActiveRecord +final class OrderItemWithNullFK extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/OrderWithNullFK.php b/tests/Stubs/MagicActiveRecord/OrderWithNullFK.php index 723b53a4f..c36974c14 100644 --- a/tests/Stubs/MagicActiveRecord/OrderWithNullFK.php +++ b/tests/Stubs/MagicActiveRecord/OrderWithNullFK.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Order. @@ -14,7 +14,7 @@ * @property int $created_at * @property string $total */ -final class OrderWithNullFK extends MagicalActiveRecord +final class OrderWithNullFK extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/Profile.php b/tests/Stubs/MagicActiveRecord/Profile.php index 7a8e2959c..7c35d7321 100644 --- a/tests/Stubs/MagicActiveRecord/Profile.php +++ b/tests/Stubs/MagicActiveRecord/Profile.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class Profile. @@ -12,7 +12,7 @@ * @property int $id * @property string $description */ -final class Profile extends MagicalActiveRecord +final class Profile extends MagicActiveRecord { public const TABLE_NAME = 'profile'; diff --git a/tests/Stubs/MagicActiveRecord/ProfileWithConstructor.php b/tests/Stubs/MagicActiveRecord/ProfileWithConstructor.php index 22358b86b..42a5adaf7 100644 --- a/tests/Stubs/MagicActiveRecord/ProfileWithConstructor.php +++ b/tests/Stubs/MagicActiveRecord/ProfileWithConstructor.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; use Yiisoft\Aliases\Aliases; use Yiisoft\Db\Connection\ConnectionInterface; @@ -14,7 +14,7 @@ * @property int $id * @property string $description */ -final class ProfileWithConstructor extends MagicalActiveRecord +final class ProfileWithConstructor extends MagicActiveRecord { public function __construct(ConnectionInterface $db, private Aliases $aliases) { diff --git a/tests/Stubs/MagicActiveRecord/TestTrigger.php b/tests/Stubs/MagicActiveRecord/TestTrigger.php index 0585cbb1d..8ac157098 100644 --- a/tests/Stubs/MagicActiveRecord/TestTrigger.php +++ b/tests/Stubs/MagicActiveRecord/TestTrigger.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class TestTrigger. @@ -12,7 +12,7 @@ * @property int $id * @property string $stringcol */ -final class TestTrigger extends MagicalActiveRecord +final class TestTrigger extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/TestTriggerAlert.php b/tests/Stubs/MagicActiveRecord/TestTriggerAlert.php index 304a75528..910fb323f 100644 --- a/tests/Stubs/MagicActiveRecord/TestTriggerAlert.php +++ b/tests/Stubs/MagicActiveRecord/TestTriggerAlert.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Class TestTriggerAlert. @@ -12,7 +12,7 @@ * @property int $id * @property string $stringcol */ -final class TestTriggerAlert extends MagicalActiveRecord +final class TestTriggerAlert extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/Type.php b/tests/Stubs/MagicActiveRecord/Type.php index b44ac0db4..611688e63 100644 --- a/tests/Stubs/MagicActiveRecord/Type.php +++ b/tests/Stubs/MagicActiveRecord/Type.php @@ -4,7 +4,7 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; /** * Model representing type table. @@ -23,7 +23,7 @@ * @property bool $bool_col * @property bool $bool_col2 DEFAULT 1 */ -final class Type extends MagicalActiveRecord +final class Type extends MagicActiveRecord { public function getTableName(): string { diff --git a/tests/Stubs/MagicActiveRecord/UserAR.php b/tests/Stubs/MagicActiveRecord/UserAR.php index 384dad4c7..0186812a9 100644 --- a/tests/Stubs/MagicActiveRecord/UserAR.php +++ b/tests/Stubs/MagicActiveRecord/UserAR.php @@ -4,9 +4,9 @@ namespace Yiisoft\ActiveRecord\Tests\Stubs\MagicActiveRecord; -use Yiisoft\ActiveRecord\MagicalActiveRecord; +use Yiisoft\ActiveRecord\MagicActiveRecord; -final class UserAR extends MagicalActiveRecord +final class UserAR extends MagicActiveRecord { public const STATUS_DELETED = 0; public const STATUS_ACTIVE = 10;