src/Behaviour/CacheInvalidator.php
public function addEntityToBeInvalidated(PrimaryKeyInterface $object) {
        $settings = $this->getCacheInvalidationSettings();
        $info = $this->getInfo($object);
        $settings[] = $info;

        // removes duplicates from the array
        $settings = array_intersect_key($settings, array_unique(array_map('serialize', $settings)));

        $this->setCacheInvalidationSettings($settings);
    }
public function addEntityToBeInvalidated(PrimaryKeyInterface $object) {
        $settings = $this->getCacheInvalidationSettings();
        $info = $this->getInfo($object);
        $settings[] = $info;

        // removes duplicates from the array
        $settings = array_intersect_key($settings, array_unique(array_map('serialize', $settings)));

        $this->setCacheInvalidationSettings($settings);
    }
Lets `$this` know that all the caches of `$object` should be invalidated whenever `$this` changes.

@param \Oxygen\Data\Behaviour\PrimaryKeyInterface $object