Support for WHERE... NOT/IN using where(), not add() #826

NobleUplift opened this Issue Feb 11, 2014 · 1 comment

2 participants


I have created a large Propel wrapper that uses PHP names to query both tables and columns in my database, i.e. query by User.Id or Group.Name. However, I have a case where I need to use WHERE... IN. Sadly, the where method does not support an array as value:

$q->where('Group.UserId IN ?', array(1, 3, 5, 7), Criteria::IN);

I would like the where method to support arrays as values. The ? in the where string would be expanded to (?, ?, ?, ?) by Propel. Thank you for reading my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment