Question

I was wondering if it is possible to bind an array of integers as a parameter, so I could do something like this?

$q = Doctrine_Query::create()
                    ->update('blah c')
                    ->set('ignored', true)
                    ->where('id in ?', array(1,2,3,4));

I guess that this isn't possible because it actually binds the variables using the database/PDO, which wouldn't support it.

Apologies if I have missed this in the documentation or another question. Thanks.

Was it helpful?

Solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top