English 中文(简体)
A. 改观理论移民模式
原标题:Updating models in a Doctrine Migration

我试图在Doctrine_Migration的背景下更新模型。 在该目标上要求节省费用似乎并没有更新数据库。 我还试图在Doctrine_Migration的背景下,执行()一项原则。 我试图在盘问题上跑到Sql Query(Sql Query),如果在我的sql console被处决,我就会得到一个有效的质问,然而,如果我管理移民,我通常不会有错误,执行()似乎没有做任何事情。

在移徙背景下如何成功执行()询问?

问题回答
$res = Doctrine_Query::create()->update( FooBar )->set( colFoo ,  ? ,  valBar )->execute();

这应当做到trick。





相关问题
Copy data from Access to SQL

I am in the process of migrating an existing Access database to a SQL database with a web front-end. I have successfully copied the database to SQL using the SQL Server Migration tool and am working ...

MongoMapper and migrations

I m building a Rails application using MongoDB as the back-end and MongoMapper as the ORM tool. Suppose in version 1, I define the following model: class SomeModel include MongoMapper::Document ...

Switching to WPF. Is it time?

I m considering switching from MFC to WPF. My first concern is that there are too many users who don t have .NET with WPF installed yet. Can anybody point to a source containing the WPF penetration ...

rake db:migrate running all migrations correctly

I m fairly new to Ruby on Rails here. I have 2 migrate files that were provided. The first one, prefixed with 001, creates a table and some columns for that table. The next migrate file, prefixed ...

Migrate Java Applet to what/where?

I am reviewing currently a medium size code base (around 30K LOC) which uses a huge Applet and interfaces with other systems. It s a tool to create custom labels, so we need drag-n-drop and other ...

热门标签