Bravo3\Orm\Drivers\Filesystem\FilesystemDriver::getRefs PHP Method

getRefs() public method

Get all refs to an entity
public getRefs ( string $key ) : Ref[]
$key string Entity ref key
return Bravo3\Orm\Drivers\Common\Ref[]
    public function getRefs($key)
    {
        $current = $this->worker_pool->execute(new Command('retrieve_index', ['key' => $key]));
        array_walk($current, function (&$item) {
            $item = Ref::fromString($item);
        });
        return $current;
    }