Last active
April 5, 2019 06:17
-
-
Save stepansib/5441c65915703161b4b023e505655c23 to your computer and use it in GitHub Desktop.
#oro get exended field data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Проверяет, есть ли у класса определенный 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