This logic must be a service defined in the DoctrineAdminBundle. Ideally the main command should call a service defined inside the ``DoctrineAdminBundle``, so the command can be used by other AdminBundle: PHPCR, mongodb or propel.