$builder->add('specs', 'document', array(
'class' => 'AcmeConsultantBundle:Specialization',
'property' => 'name',
'expanded' => true,
'multiple' => true,
)
$builder->add('themes', 'collection');
Выводит в виде текстовых полей, где в качестве значения выводятся названия тематик. Но мне нужен именно checkbox list. $builder->add('themes', 'collection', array(
'type' => 'choice',
'options' => array(
'choices' => array('Финансы', 'Здоровье', 'Семья', 'Бизнес'),
'expanded' => true,
'multiple' => true,
),
));
Выдал Expected argument of type «array», «string» given в трансформере ChoicesToBooleanArrayTransformer.$builder->add('themes', 'choice', array(
'choices' => array("Семья", "Деньги", 'Здоровье'),
'expanded' => true,
'multiple' => true,
));
"themes": [
NumberInt(0),
NumberInt(2)
]
MySQL can’t perform the LIKE operation in the index. This is a limitation of the
low-level storage engine API, which allows only simple comparisons in index
operations. MySQL can perform prefix-match LIKE patterns in the index because
it can convert them to simple comparisons, but the leading wildcard in the query
makes it impossible for the storage engine to evaluate the match. Thus, the
MySQL server itself will have to fetch and match on the row’s values, not the
index’s values.