Closed makoru-hikage closed 7 years ago
Factors to consider:
Builder
class has no save()
methodmap()
of Repofuck can't also be used on Builder
There is prepare()
method in Repofuck, but I am still finding a way to use it with Builder
s, especially the Builder
s with leftJoin()
s.
Do you have any idea?
The entity property will no longer be available for public use in the next iteration, as you will need to utilize the prepare
function for any manipulation of the entity. For joins however, you can directly call relationships in the entities themselves.
Will the $entities
also be not available for public use?
Unfortunately no. Any kind of manipulation should be done over the repositories themselves.
Calling create()
or update()
method is impractical when $this->entity
is a Builder
; there is no need for catching such exception on the developer's side. Such scenario is left to the end user.
Issue is closed for this reason.
For an example:
I still have no idea on how to mitigate it when a developer does it; how shall it be?