English 中文(简体)
ORMers,how are You to address this in the ORM作风?
原标题:ORMers,how are you going to deal with this in the ORM style?

我们正在修改我们关于停滞不前的职位。

我们只修改了tags part,removed tag1/code>,tag2,并添加了tag3,>tag4

在要求Post You Questionthton之后,应当做以下工作:

  1. reduced the count column for tag1,tag2 by 1
  2. delete the relation between the post and tag1,tag2
  3. if tag3,tag4 already exists,increase the count column of the two by 1;otherwise,insert them to the tags table with count value 1
  4. add the relation between the post and tag3,tag4

让我们呼吸深厚的 and!

我想看到,无论在PHP/Java/C/文件中写到什么事项,哪一个办公室能够最容易地处理这一问题。 各种语言的内含或外任何语言都相似!

问题回答




相关问题
Entity Framework with File-Based Database

I am in the process of developing a desktop application that needs a database. The application is currently targeted to SQL Express 2005 and works wonderfully. However, I m not crazy about having ...

Assistance with CakePHP model relationships

How would I represent the following in a CakePHP model? Product ======= product_id .... Cart ==== cart_id .... Carts_Products ============== cart_id product_id quantity

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How are Models (in MVC) and DAOs supposed to interact?

How are models and DAOs supposed to interact? I m in the process of putting together a simple login module and I m unsure where to put the "business logic." If I put the logic with the data in the ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...