propelorm/Propel2 — Issue #41: [RFC] Criterion subclasses
Author: fzaninotto
Created: 2011-11-10 08:21:22+00:00
State: open

The `Citerion` and `ModelCriterion` code is a mess. The `dispatchPsHandling()` cries for subclasses. I suggest that the code from this method moves up to Criteria, at the Criterion creation, so as to instanciate various Criterion subclasses (e.g. `CriterionLike`, `CriterionIn`, `CriterionRaw`, etc.), each having a dedicated and clean `appendPsTo()` method.