Ticket #1548 (closed enhancement: fixed)
use fetchOne instead of execute and custom code on Table::findOneBy
| Reported by: | jackbravo | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.0.4 |
| Component: | Attributes | Version: | 1.0.2 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description
findOneBy is using custom code to return one record or false from a query.
this code is already present on the method Query::fetchOne, so it should use that instead of calling Query::execute
Change History
Note: See
TracTickets for help on using
tickets.