source/Spiral/ORM/Entities/Relations/MultipleRelation.php
public function matchMultiple($query)
    {
        $result = [];
        foreach ($this->loadData(true)->instances as $instance) {
            if ($this->match($instance, $query)) {
                $result[] = $instance;
            }
        }

        return new \ArrayIterator($result);
    }
public function matchMultiple($query)
    {
        $result = [];
        foreach ($this->loadData(true)->instances as $instance) {
            if ($this->match($instance, $query)) {
                $result[] = $instance;
            }
        }

        return new \ArrayIterator($result);
    }
public function matchMultiple ( $ query ) { $ result = [ ] ; foreach ( $ this -> loadData ( true ) -> instances as $ instance ) { if ( $ this -> match ( $ instance , $ query ) ) { $ result [ ] = $ instance ; } } return new \ ArrayIterator ( $ result ) ; }
Return only instances matched given query, performed in memory! Only simple conditions are
allowed. Not "find" due trademark violation. Method will autoload data.

Example: ->matchMultiple(['value' => 'something', ...]);

@param array|RecordInterface|mixed $query Fields, entity or PK.

@return \ArrayIterator
Return only instances matched given query performed in memory! Only simple conditions are allowed . Not find due trademark violation . Method will autoload data .