Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Improvement: DocumentSet Entity needed for query #39

Open
landall opened this issue Dec 6, 2018 · 1 comment
Open

Improvement: DocumentSet Entity needed for query #39

landall opened this issue Dec 6, 2018 · 1 comment

Comments

@landall
Copy link

landall commented Dec 6, 2018

Query should separate the logic between findall and query itself.

A solution is to import the concept of DocumentSet.
It seems like:
$documents = $db->findAll(); or $documents = $db->find(['books','apples','writers','cars']);
$documents->query(.....);

then
public function Database::query(...) ==> $this->findAll()->query(...);

@aalfiann
Copy link

Nice, Sounds like nosql way..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants