Bug #3477

Objects added to a (persistence) repository don't have have a uuid

Added by Robert Lemke almost 12 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
Persistence
Start date:
2009-05-27
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Newly created objects which are added to a repository don't have a uuid before they are persisted:

    /**
     * @param \F3\Releazr\Domain\Model\Release $newRelease
     * @return string
     */
    public function createAction(\F3\Releazr\Domain\Model\Release $newRelease) {
        $this->releaseRepository->add($newRelease);
        $this->redirect('show', NULL, NULL, array('release' => $newRelease));
    }

The redirect in the above example doesn't work because the URI needs to know the UUID of $newRelease which yet doesn't exist.

Solution: Let the (release) repository create a UUID and let the CR take that UUID as a hint for later persistence.

#1

Updated by Karsten Dambekalns almost 12 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2442.

Also available in: Atom PDF