Closed
Conversation
This is a port of the ResultSet class from [DumbledORM][1]. The `find_many` method will return a ResultSet object instead of an array. All method calls on the result set will be passed onto all the models in the set. This allows for fancy jQuery-like syntax. [1]: https://github.com/jasonmoo/DumbledORM
|
I like this solution |
|
Awesome. Just now seeing this. :) |
Collaborator
|
Thank you for the pull request. It cannot be merged into Paris though as it belongs on a layer below in Idiorm itself. In the latest commit on the develop branch of Idiorm (j4mie/idiorm@5a6d20c) ResultSet functionality has been added. To enable Then you can run any Paris methods against the results as @sandermarechal has mentioned above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I came across a comment from you that you were interested in porting the ResultSet class from DubmledORM to Paris. I really liked DombledORM's approach so I started using it in my project as well. This change adds the ResultSet to Paris, allowing for some fancy jQuery-like syntax. Example:
I ported it to Paris, which seemed like the most logical choice to me at the time. If you prefer, I could also try to implement it on Idiorm itself, which would fix your j4mie/idiorm#22