I have this native doctrine SQL
SELECT COUNT(DISTINCT t.int_task_type_id) as a_count
FROM tbl_xref_people_task t
WHERE t.bit_completed = true AND
t.int_people_id = :peopleId AND
t.int_task_type_id IN (:taskType)
I need to write it in native SQL because int_task_type_id is the discriminator column in the model hierarchical class.
The problem is that I cannot do the following:
$query->setParameter(':taskType', implode(', ',$taskType));
or that:
$query->setParameter(':taskType', $taskType, 'array');
How can i solve this?
source
share