Bug #59858
Property <Path>\CoffeeBean::$Persistence_Object_Identifier does not exist
Status: | New | Start date: | 2014-06-25 | |
---|---|---|---|---|
Priority: | Must have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - | |||
Target version: | TYPO3 Flow Base Distribution - 2.x | |||
Affected Flow version: | Flow 2.0.0 |
Description
Hi, I'm a Yii developer trying to migrate to a DDD oriented PHP framework like Typo3 Flow :)
I downloaded Typo3 Flow 2.2 this week and followed the QuickStart guide step by step (http://docs.typo3.org/flow/TYPO3FlowDocumentation/Quickstart/Index.html).
However, after execute this command:
./flow kickstart:actioncontroller --generate-actions --generate-related Acme.Demo CoffeeBean
I executed the following command:
./flow doctrine:update
And I received the following error:
"Property Acme\Demo\Domain\Model\CoffeeBean::$Persistence_Object_Identifier does not exist"
I manually added that property to the CoffeeBean model and that has solved this issue (I was able to do CRUD operations with that model) but I'm not sure if this is an expected manual change before execute "doctrine:update". Even if that property should be added manually, I guess will be useful include that step in the QuickStart steps for newbies like me.
By the way, I like a lot the design of this framework, good job!
Thank you!
Leandro
History
#1 Updated by Mark Wahl 7 months ago
I got the same error today with a fresh install of TYPO3 Flow 2.3, but I didn't know how to add the property manually. Unfortunately searching did not reveal any quick solution. But then just running
./flow doctrine:update
again (without changing anything!), the error is not reported anymore and I simply got
Executed a database schema update.
Now the CoffeeBean page works like described.
So the first update call must have been done something despite throwing the error. Otherwise the second update would not have been successful.
Just a comment: Such a behaviour does not really strengthens the confidence in the code (or documentation) quality :-( . There were already confusing error messages which must simply be ignored during flow installation (and not mentioned in the Quickstart).
Regards,
Mark
#2 Updated by Wolfgang Felbermeier 7 months ago
- File stacktrace.txt added
I can relate to that issue, too.
After creating a new Entity, when running
./flow doctrine:update
i got the error:
Message Property ****\Domain\Model\Document::$Persistence_Object_Identifier
Stacktrace is attached.
After that, running the update again without changes, it works flawless without any error.
#3 Updated by Adrian Föder 7 months ago
- Project changed from TYPO3 Flow Base Distribution to TYPO3.Kickstart
#4 Updated by Adrian Föder 7 months ago
Could you guys do me a favor and add / gist / pastebin an exact copy of how the generated Model class (CoffeeBean, Document) looks?
#5 Updated by Wolfgang Felbermeier 7 months ago
- File Document.php added
Here you go. The model class is attached.