Ticket #78 (closed defect: duplicate)
Compare two columns with criteria
| Reported by: | aguai@… | Owned by: | hans |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Runtime (PHP5) | Version: | devel |
| Severity: | normal | Keywords: | criteria |
| Cc: |
Description (last modified by francois) (diff)
Because this construction does not function?
$criterio = new Criteria(); $criterio->add(TableName::Col_1, TableName::Col2, Criteria::LESS_THAN);
How to do to compare 2 columns of the same table?
att, Emerson
Change History
comment:1 Changed 5 years ago by david
- Severity changed from critical to normal
- Milestone changed from 1.2 to 2.0
comment:2 Changed 5 years ago by aguai@…
The version of my Criteria.php is 1.62 Exists a new version?
comment:3 Changed 5 years ago by david
Err no I meant that this will possibly not implemented before Propel 2.0. From what I can tell, it's currently not possible to do without custom SQL.
comment:4 Changed 5 years ago by hans
- Priority changed from high to normal
Yeah, this may be something we want to support in 2.0, but it's currently not possible or particularly clean/easy to implement.
Note: See
TracTickets for help on using
tickets.
Interesting. I think something like that should definitely be possible. Looking at the code that does all the work, I don't think it's that easy to achieve, so this might not be possible before 2.0