Bug #37815
Object are not persisted
Status: | Closed | Start date: | 2012-06-07 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 100% |
|
Category: | Persistence | |||
Target version: | TYPO3 Flow Base Distribution - 1.1 | |||
PHP Version: | Complexity: | |||
Has patch: | No | Affected Flow version: | FLOW3 1.1.0 beta 2 |
Description
With the following injected repository
/** * Team repository * * @var \Familiefejden\Domain\Repository\TeamRepository * @FLOW3\Inject */ protected $teamRepository;
and calling the function
$this->teamRepository->add($newTeam);
i expect to have my $newTeam (a valid!) object persisted, but nothing is persisted. I get forward to my next action ($this->forward(..)) with no exceptions.
Query log remains empty.
./flow3 doctrine:update commands works perfectly and tables are created
Related issues
History
#1 Updated by Soren Malling about 3 years ago
ChristianM told me on IRC, that running ->persistAll() persists the values - but nothing is persisted if not running this command
#2 Updated by Soren Malling about 3 years ago
Tried to debug the issue and added some systemlogger->log call and all of a sudden (after rebuilding proxy classes - did a flow3:cache:flush --force) the injected repository was able to persist (without running persistAll)
#3 Updated by Karsten Dambekalns about 3 years ago
- Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow
- Status changed from New to Accepted
- Assigned To set to Karsten Dambekalns
#4 Updated by Karsten Dambekalns about 3 years ago
- Category set to Persistence
- Status changed from Accepted to Closed
- Target version set to 1.1
- % Done changed from 0 to 100
- Has patch set to No
Persistence works fine, judging from your description (it worked all of a sudden) I guess you fell victim to #37574…