Skip to content

inconsistencies between pool and item #363

@theluk

Description

@theluk

The namespace and the driver in Stash\Interface\PoolInterface are not immutable but they are not delegated to the underlying Stash\Interface\ItemInterface. Changing the driver or the namespace lead to a inconsistency between Pool and Item.

Solution 1: setDriver and setNamespace MUST be removed
Solution 2: Driver and Namespace changes MUST be propagated down to all Items. This would mean, that the state of the item would be invalid. Therefore it MUST be fully reloaded or instantiated.

The easiest and cleanest part would be Solution 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions