[FLOW3-general] FLOW3 / MySQL

Michael Sauter mail at michaelsauter.net
Tue Oct 12 16:53:25 CEST 2010


Hi Thomas,

On 12.10.10 15:25, Thomas Layh wrote:
> On page:
> http://flow3.typo3.org/documentation/tutorials/getting-started/gettingstarted.controller/
> they say to use
> $this->objectFactory->create('\F3\Whatever');
> but this results in an error. After checking the documentation I found out
> that they say to use:
> $this->objectManager->create('\F3\Whatever');
> and this works for me.

Yep, objectFactory was removed a while ago ... so always use 
objectManager now.

> But there is another small problem. For a completely new project everything
> is fine. But what if I already have database tables and want to reuse them.
> Do I have to import them by writing a setupController and putting all data
> there? Or writing some custom sql to get the data and transfer it to the new
> structure?

AFAIK, you do have to write some kind of import mechanism ... actually, 
this sounds like a nice idea for a generic "import" package ... I might 
have a look at that ;)

~michael


More information about the FLOW3-general mailing list