public function hasMany($id, \JSONSimpleStorage $object, array $foreignIds) {
        // set has one on foreign data
        foreach ($foreignIds as $foreignId) {
            $object->hasOne($foreignId, $this, $id);
        }
    }