Skip to content

Commit a0800ce

Browse files
committed
ManyToMany should return RecordCusor
1 parent 6bdaf6e commit a0800ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPFUI/ORM/ManyToMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ManyToMany extends \PHPFUI\ORM\VirtualField
2222
/**
2323
* @param array<string, string[]> $parameters Key is the field name, values should be **\PHPFUI\ORM\ManyToMany::class**, followed by the junction table class name, then related table class name. Two additional parameters can be specified, the order by column and sort order (defaults to ASC).
2424
*/
25-
public function getValue(array $parameters) : \PHPFUI\ORM\Record
25+
public function getValue(array $parameters) : \PHPFUI\ORM\RecordCursor
2626
{
2727
$junctionTableClass = \array_shift($parameters);
2828
$junctionTable = new $junctionTableClass();

0 commit comments

Comments
 (0)