Changeset 4351

Show
Ignore:
Timestamp:
05/10/08 02:55:06 (8 months ago)
Author:
jwage
Message:

fixes #1009 - Adding limit(1) to query in Doctrine_Table::find()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/Table.php

    r4319 r4351  
    12031203        return $this->createQuery() 
    12041204            ->where(implode(' = ? AND ', (array) $this->getIdentifier()) . ' = ?') 
     1205            ->limit(1) 
    12051206            ->fetchOne($id, $hydrationMode); 
    12061207    }