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