Skip to content

Commit ac422d6

Browse files
authored
removed DomainCollection::fromValue(), GenericPaginatedDomainCollection (#388)
1 parent d7ce434 commit ac422d6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Infrastructure/Doctrine/Repository/UsernameRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(string $class, EntityManagerInterface $em, UsernameL
3939

4040
public function lookup(): DomainCollection
4141
{
42-
return GenericDomainCollection::fromValue($this->lookup->lookup());
42+
return new GenericDomainCollection($this->lookup->lookup());
4343
}
4444

4545
public function findAll(int $offset = 0, int $limit = 0): DomainCollection

Model/EmailsField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ trait EmailsField
2121
*/
2222
public function getEmails(): DomainCollection
2323
{
24-
return GenericDomainCollection::fromValue($this->emails);
24+
return new GenericDomainCollection($this->emails);
2525
}
2626
}

Model/RolesField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ trait RolesField
2121
*/
2222
public function getRoles(): DomainCollection
2323
{
24-
return GenericDomainCollection::fromValue($this->roles);
24+
return new GenericDomainCollection($this->roles);
2525
}
2626
}

0 commit comments

Comments
 (0)