Ticket #1390 (closed defect: worksforme)
Doctrine::getTable('table')->find(2) works different than $table->find(2)
| Reported by: | warden | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Attributes | Version: | 1.0.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | yes | |
| Status: | Pending User Response | Has Patch: | no |
Description
imho those two methods should do the same:
1) $record = new User(); $record->getTable()->find(5);
2) $record = Doctrine::getTable('User')->find(5);
1) doesn't work, and 2) does.
Change History
Note: See
TracTickets for help on using
tickets.