neat-php / object

Neat Object components
MIT License
4 stars 1 forks source link

Store RemoteKey relations #9

Closed Bloemkoolsaus closed 5 years ago

Bloemkoolsaus commented 5 years ago

The many relation -> set($remote) method does not remove items that are not in the new set.

baukevdw commented 5 years ago

The Many->set($remotes) method works as expected as do the store methods of the JunctionTable and the RemoteKey reference which can be used in combination with the Many relation.

Could you supply an example that illustrates the bug?

annavanbiemen commented 5 years ago

The cause is most likely in the store implementation of the RemoteKey reference. The comparision function currently returns boolean values, but should return integer (-1, 0, or 1) values instead.