findOneOrCreate and ARRAY column #272

Pepino483 opened this Issue Jan 30, 2012 · 1 comment


None yet
2 participants

I don't know when this is a bug or not but i thing so..

This my code..

$productId = 2223;
$array = array(55, 22);

$var = \Product\VariationQuery::create()
            ->filterByOptions($array, \Criteria::CONTAINS_ALL)

Options column is type of ARRAY

When there isn't found record, generating new Variation object but contains only one value from array.. I thing, that should have all values of array and no only first value..


fzaninotto commented Feb 13, 2012

That's a limit use case that I'm not sure how Propel should handle. What do you think should happen when using other comparison methods (like Criteria::CONTAINS_SOME and Criteria::CONTAINS_NONE)?

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