Skip to content

Instantly share code, notes, and snippets.

@stepansib
Last active April 5, 2019 06:17
Show Gist options
  • Save stepansib/5441c65915703161b4b023e505655c23 to your computer and use it in GitHub Desktop.
Save stepansib/5441c65915703161b4b023e505655c23 to your computer and use it in GitHub Desktop.
#oro get exended field data
/**
* Проверяет, есть ли у класса определенный extended параметр
*
* @Route("/extend-field/", name="crm_debug_extend_field")
*/
public function extendFieldAction()
{
/** @var ConfigManager $em */
$cm = $this->get('oro_entity_config.config_manager');
$entityConfigModel = $cm->getConfigEntityModel(User::class);
$fieldConfigModel = $cm->getConfigFieldModel(User::class, 'is_without_bonus');
VarDumper::dump($entityConfigModel);
VarDumper::dump($fieldConfigModel);
die();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment