Propel icon indicating copy to clipboard operation
Propel copied to clipboard

filterByPrimaryKey should accept a comparison argument

Open Bonscho opened this issue 9 years ago • 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.

Bonscho avatar Jan 29 '16 12:01 Bonscho