Bug #3477

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

Added by Robert Lemke over 10 years ago. Updated about 9 years ago.

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

100%

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.

Associated revisions

Revision 734da3c3 (diff)
Added by Karsten Dambekalns over 10 years ago

FLOW3:
  • entities now get an UUID set through AOP upon creation which is used later on, resolves #3477
TYPO3CR:
  • getUUIDByObject now looks for UUID set by FLOW3 through AOP, refs #3477

History

#1 Updated by Karsten Dambekalns over 10 years ago

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

Applied in changeset r2442.

Also available in: Atom PDF