src/Controller/Component/FilterComponent.php
public function prepareSearchEntity(array $options = array())
    {
        $alias = $options['alias'];

        /**
         * @var Entity $search_entity
         */
        $search_entity = $this->controller->{$alias}->newEntity();

        $search_entity->setAccess('*', true);
        $this->controller->{$alias}->patchEntity($search_entity, $this->controller->request->getData());
        $this->controller->set(compact('search_entity'));
    }
public function prepareSearchEntity(array $options = array())
    {
        $alias = $options['alias'];

        /**
         * @var Entity $search_entity
         */
        $search_entity = $this->controller->{$alias}->newEntity();

        $search_entity->setAccess('*', true);
        $this->controller->{$alias}->patchEntity($search_entity, $this->controller->request->getData());
        $this->controller->set(compact('search_entity'));
    }
public function prepareSearchEntity ( array $ options = array ( ) ) { $ alias = $ options [ 'alias' ] ; /**
         * @var Entity $search_entity
         */ $ search_entity = $ this -> controller -> { $ alias } -> newEntity ( ) ; $ search_entity -> setAccess ( '*' , true ) ; $ this -> controller -> { $ alias } -> patchEntity ( $ search_entity , $ this -> controller -> request -> getData ( ) ) ; $ this -> controller -> set ( compact ( 'search_entity' ) ) ; }
Prepare Entity used to display search filters in the view
@param array $options
@return void
Prepare Entity used to display search filters in the view