This topic contains 1 reply, has 1 voice, and was last updated by Geoffroy Cochard 6 years, 10 months ago.
- Topic
Hie,
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 :
12$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 like
123456789101112$column->setOptions([OroOptions::KEY => ['extend' => ['is_extend' => true,'owner' => ExtendScope::OWNER_SYSTEM],'merge' => ['display' => true],'dataaudit' => ['auditable' => true]]]);During cache generation, it find namePrefix twice
12[Doctrine\ORM\Mapping\MappingException]Property "namePrefix" in "Oro\Bundle\ContactBundle\Entity\Contact" was already declared, but it must be declared only onceCause 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
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.