0

I want to insert data into a Table with a for-loop. First of all I have create a Symfony Task with:

symfony generate:task namespace:MyTask

now I'm trying to generate a propel sql task that I can call into my Symfony Task so that when I call :

symfony namespaceMyTask

it insert an amount of for(i=10; i < 30; i++) Data into a Table.

How can I create a custom propel task that can be call into a symfony task?

j0k
  • 22,600
  • 28
  • 79
  • 90
3logy
  • 2,634
  • 8
  • 46
  • 99

1 Answers1

1

It's in the doc under "Executing a Task inside a Task".

$this->runTask('namespaceMyTask');
j0k
  • 22,600
  • 28
  • 79
  • 90
  • Merci! but that's great! but i miss the way to create an Own Propel Task! or it's not possible? – 3logy Jul 09 '12 at 07:43
  • 1
    You can't create a "propel task", propel is the orm not the framework. You have to create a symfony task that will use propel to do what ever you want. – j0k Jul 09 '12 at 07:49