Skip to content

Commit

Permalink
Merge pull request sonata-project#2132 from BraisGabin/patch-3
Browse files Browse the repository at this point in the history
Specify where the action must be declared
  • Loading branch information
rande committed May 13, 2014
2 parents 0a4d281 + 3ba80f4 commit 26ecdee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Resources/doc/reference/batch_actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,16 @@ The main purpose of this method is to alter the query or the list of selected id
Define the core action logic
----------------------------

The method ``batchAction<MyAction>`` will be executed to process your batch. The selected
The method ``batchAction<MyAction>`` will be executed to process your batch in your ``CRUDController`` class. The selected
objects are passed to this method through a query argument which can be used to retrieve them.
If for some reason it makes sense to perform your batch action without the default selection
method (for example you defined another way, at template level, to select model at a lower
granularity), the passed query is ``null``.

.. note::

You can check how to declare your own ``CRUDController`` class in the Architecture section.

.. code-block:: php
<?php
Expand Down

0 comments on commit 26ecdee

Please sign in to comment.