Skip to content

Commit

Permalink
Fixing postgres self join error
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Mar 16, 2010
1 parent 201a952 commit c1f74c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cake/libs/model/datasources/dbo_source.php
Expand Up @@ -1663,6 +1663,8 @@ function _matchRecords(&$model, $conditions = null) {
$originalField = $field;
if (strpos($field, '.') !== false) {
list($alias, $field) = explode('.', $field);
$field = ltrim($field, $this->startQuote);
$field = rtrim($field, $this->endQuote);
}
if (!$model->hasField($field)) {
$noJoin = false;
Expand Down

0 comments on commit c1f74c2

Please sign in to comment.