Is it any possibility to create query with doctrine (symfony 1.4) in which I defined table name from database (not model class from schema.yml) in from clause?
For example:
in schema.yml I have model class
StaticPage:
connection: doctrine
tableName: static_page
columns:
...
my query is as following:
$item = Doctrine_Query::create();
$item->query("SELECT * FROM StaticPage WHERE id = ".$id);
$change = $item->fetchOne();
$change->setPublished(true);
$change->save();
In this query instead StatigPage I need static_page (tableName)...
Thanks...
$item = StaticPageTable::getInstance()->find($id);
$item->setPublished(true)->save();
– Fracsi