Skip to content
Discussion options

You must be logged in to vote

While I like the overall idea, I think, mixing relation resolving logic with the Collection class is neither a good idea nor wanted. The problem with the currently existing implementation is

  • the "loss" of context when doing model->collection
  • the collection is not per se "typed"

I would propose to create a new typed collection that

  • holds the model
  • holds a query builder
  • forwards calls to the query builder instance

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@serter35
Comment options

@shaedrich
Comment options

Answer selected by serter35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants