Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Sep 12, 2024
1 parent 2e35860 commit 70a4cac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/AbstractActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ public function set(string $propertyName, mixed $value): void
*
* @param array $values Property values (name => value) to be assigned to the model.
*
* {@see propertyNames()}
* @see propertyNames()
*/
public function populateProperties(array $values): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Trait/MagicPropertiesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ trait MagicPropertiesTrait
* @throws Exception
* @return mixed Property or relation value.
*
* {@see get()}
* @see get()
*/
public function __get(string $name)
{
Expand Down
17 changes: 9 additions & 8 deletions tests/ActiveQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2115,16 +2115,17 @@ public function testCustomARRelation(): void

public function testPropertyValues(): void
{
$expectedValues = [];
$this->checkFixture($this->db(), 'customer');

$expectedValues['id'] = 1;
$expectedValues['email'] = '[email protected]';
$expectedValues['name'] = 'user1';
$expectedValues['address'] = 'address1';
$expectedValues['status'] = 1;
$expectedValues['bool_status'] = true;
$expectedValues['profile_id'] = 1;
$expectedValues = [
'id' => 1,
'email' => '[email protected]',
'name' => 'user1',
'address' => 'address1',
'status' => 1,
'bool_status' => true,
'profile_id' => 1,
];

$customer = new ActiveQuery(Customer::class);

Expand Down

0 comments on commit 70a4cac

Please sign in to comment.