I have to use this :
$deleted = Doctrine_Query::create()
->delete()
->from('orders')
->andWhere('user_id = "'.$_REQUEST["user_id"].'"')
->execute();
to delete a line from SQL in symfony, but how can I create a new line with this rows:
id|user_id|order_date|order_type|order_end_date|aktiv|fiz_meth
the name of table is: orders
How can I do that?
You should create a new order using this kind of code:
Be sure to replace variable name for each column.
You will find an other example on the second code bloc in the official doc.