[Flow] Creating Entity Entries in Migration

Christian chl at vkf-renzel.de
Tue Apr 1 10:05:59 CEST 2014


Hello,

I need to create some Database entries in my Migration scripts. I tried 
injecting my Repository and creating Object as usual by instanciating my 
model Objects, and add then to the repository. However, to persist 
those, i need the persistenceManager, which for i can't inject, for some 
reason I don't know...

HP Fatal error:  Call to a member function persistAll() on a non-object .

I injected it as I always do:

     /**
      * @Flow\Inject
      * @var \TYPO3\Flow\Persistence\PersistenceManagerInterface
      */
     protected $persistenceManager;

I allready figured out, that I might need to create my DB entries on my 
own, by writing to the database. However, for this to work, i need to 
generate persistence_object_idetifiers. Can someone tell me how to do 
this? Or is there a better way of handling this kind of migration?

Cheers,

Christian


More information about the Flow mailing list