-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement the interface ArrayableInterface for BaseActiveRecord
- Loading branch information
1 parent
0f680fe
commit 594a222
Showing
2 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ | |
use Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\OrderItemWithNullFK; | ||
use Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\Type; | ||
use Yiisoft\ActiveRecord\Tests\Support\Assert; | ||
use Yiisoft\Arrays\ArrayHelper; | ||
use Yiisoft\Db\Exception\Exception; | ||
use Yiisoft\Db\Exception\InvalidArgumentException; | ||
use Yiisoft\Db\Exception\InvalidCallException; | ||
|
@@ -802,7 +801,7 @@ public function testToArrayForArrayable(): void | |
'email' => '[email protected]', | ||
'status' => 'inactive', | ||
], | ||
] | ||
], | ||
], | ||
$customer->toArray([ | ||
'id', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ | |
use Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\DefaultPk; | ||
use Yiisoft\ActiveRecord\Tests\Stubs\ActiveRecord\UserAR; | ||
use Yiisoft\ActiveRecord\Tests\Support\PgsqlHelper; | ||
use Yiisoft\Arrays\ArrayHelper; | ||
use Yiisoft\Db\Expression\ArrayExpression; | ||
use Yiisoft\Db\Expression\Expression; | ||
use Yiisoft\Db\Expression\JsonExpression; | ||
|
@@ -420,7 +419,7 @@ public function testToArrayForArrayable(): void | |
'email' => '[email protected]', | ||
'status' => 'inactive', | ||
], | ||
] | ||
], | ||
], | ||
$customer->toArray([ | ||
'id', | ||
|