src/Action/Bulk/BaseAction.php
protected function _constructSubject(array $ids)
    {
        $repository = $this->_table();

        list($finder, $options) = $this->_extractFinder();
        $options = array_merge($options, $this->_getFindConfig($ids));
        $query = $repository->find($finder, $options);

        $subject = $this->_subject();
        $subject->set([
            'ids' => $ids,
            'query' => $query,
            'repository' => $repository,
        ]);

        return $subject;
    }
protected function _constructSubject(array $ids)
    {
        $repository = $this->_table();

        list($finder, $options) = $this->_extractFinder();
        $options = array_merge($options, $this->_getFindConfig($ids));
        $query = $repository->find($finder, $options);

        $subject = $this->_subject();
        $subject->set([
            'ids' => $ids,
            'query' => $query,
            'repository' => $repository,
        ]);

        return $subject;
    }
protected function _constructSubject ( array $ ids ) { $ repository = $ this -> _table ( ) ; list ( $ finder , $ options ) = $ this -> _extractFinder ( ) ; $ options = array_merge ( $ options , $ this -> _getFindConfig ( $ ids ) ) ; $ query = $ repository -> find ( $ finder , $ options ) ; $ subject = $ this -> _subject ( ) ; $ subject -> set ( [ 'ids' => $ ids , 'query' => $ query , 'repository' => $ repository , ] ) ; return $ subject ; }
Setup a query object for retrieving entities

@param array $ids An array of ids to retrieve
@return \Crud\Event\Subject
Setup a query object for retrieving entities