My goal is to change namePrefix behaviour like a select with option Mr, Mrs, Ms, etc through a Special DoctrineType
My first step is to change type with migration :PHP12$column = $table->getColumn('name_prefix');$column->setType(Type::getType('contact_name_prefix'));
During migration all was fine but i would like to transform this field to an extended field cause to use all oro advantages like formType guesser and so on.
But when i modify oro_options to is_extend = true of this field with migration likePHP123456789101112$column->setOptions([OroOptions::KEY => ['extend' => ['is_extend' => true,'owner' => ExtendScope::OWNER_SYSTEM],'merge' => ['display' => true],'dataaudit' => ['auditable' => true]]]);
During cache generation, it find namePrefix twicePHP12[Doctrine\ORM\Mapping\MappingException]Property "namePrefix" in "Oro\Bundle\ContactBundle\Entity\Contact" was already declared, but it must be declared only once
Cause i think one namePrefix from extended configuration and one from regular entity…
Should i work only on template / FormType override ?
Thanks by advance for your advice
You must be logged in to reply to this topic.