Feature #3337
Allow to count lazy-loaded objects without fetching them from the persistence layer
Status: | Resolved | Start date: | 2009-05-16 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 100% |
|
Category: | Persistence | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: |
Description
It should be possible to count objects in a repository without the need to actually fetch and initialize them.
It would be useful to be able to call
count($blog->posts);without actually fetching all posts.
Related issues
Associated revisions
[+FEATURE] FLOW3 (Persistence): Reimplemented lazy loading, resolves #6120. See updated manual for details.
[+FEATURE] FLOW3 (Persistence): Lazy loaded SplObjectStorage can now be counted without triggering activation, resolves #3337.
[~API] FLOW3 (Persistence): Moved the BackendInterface into the Backend namespace.
[-API] FLOW3 (Persistence): Removed the DataMapperInterface. Backends should follow the defined data structure.
[~TASK] FLOW3 (Persistence): Optimized clean data handling while dirty checking, reducing memory usage.
History
#1 Updated by Robert Lemke about 6 years ago
- Target version set to 283
#2 Updated by Robert Lemke about 6 years ago
- Priority changed from Should have to Could have
- Target version changed from 283 to 1.0 alpha 2
#3 Updated by Robert Lemke about 6 years ago
- Target version changed from 1.0 alpha 2 to 283
#4 Updated by Robert Lemke about 6 years ago
- Target version deleted (
283)
#5 Updated by Karsten Dambekalns almost 6 years ago
- Status changed from New to Accepted
#6 Updated by Karsten Dambekalns over 5 years ago
- Subject changed from Allow to count lazy-loaded objects without fetching them from the CR to Allow to count lazy-loaded objects without fetching them from the persistence layer
- Priority changed from Could have to Should have
#7 Updated by Jochen Rau over 5 years ago
I have implemented this in Extbase with a initialize template method in the LazyLoadingProxy/LazyObjectStorage.
#8 Updated by Karsten Dambekalns over 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r3930.