Refactor pagination parts to separate function
Merge branch 'query-refactoring'

Conflicts:
	data/generator/sfDoctrineRestGenerator/default/template/actions/actions.class.php