Feature #1676

FLOW3, Persistence: support for "magic finder methods"

Added by Bastian Waidelich over 11 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-10-11
Due date:
% Done:

100%

PHP Version:
Has patch:
Complexity:

Description

it would be great, if the base repository would offer interceptor methods returning a subset of stored objects based on properties.
This could look something like:

$customerRepository->findByName('Skårhøj');

returning an array of customer objects with the property "name" of "Skårhøj". And:

$customerRepository->findOneByName('Skårhøj');

to return the first matching object. And maybe something like:

$customerRepository->find($id);

to return a single object with a matching identifier property.


Related issues

Duplicated by TYPO3.Flow - Feature #2603: Implement magic findBy*() and findOneBy*() methods in the base repository Resolved 2009-02-10

Associated revisions

Revision d76c6aaf (diff)
Added by Robert Lemke about 11 years ago

  • FLOW3: (Persistence) Implemented magic findBy*() and findOneBy*() methods for the base repository. Resolves #1676 and closes #2603.

History

#1 Updated by Bastian Waidelich over 11 years ago

  • Project changed from TYPO3.TYPO3CR to TYPO3.Flow

#2 Updated by Robert Lemke about 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1890.

Also available in: Atom PDF