propelorm/Propel

filterByPrimaryKey should accept a comparison argument

Opened this issue · 0 comments

The generated query class methods filterByPrimaryKey() allow to filter only by Criteria::EQUAL comparison.

Using them in generic code not knowing the column name of the PK column, it is not possible to exclude models by primary key from the resulting collection.

I think it should be easy to add the comparison as second argument wihout breaking existing functionality.