neat-php / object

Neat Object components
MIT License
4 stars 1 forks source link

Repository->storeRelations not working #24

Closed baukevdw closed 4 years ago

baukevdw commented 4 years ago

Since the relations refactor the storeRelations method on the Repository class doesn't work. This is cause by the cache now containaining RelationBuilders instead of actual Relations objects.

A dirty fix could be calling the resolve method on the builders.

A better sollution is to refactor the code so that the relation builder can be cached on the manager and the actual relation is cached on the entity itself like it was before the relation refactor.