我有两张桌子:
First:
id | name | password
1 | peter | old
Second:
id | name | password
我首先从表中获取对象:
$first = Doctrine::getTable('First')->find(1);
$copy = $first->copy();
$second = new Second($first);
$second->save();
或者
$second = new Second($copy);
$second->save();
在这两种情况下,我都有:
Second:
id | name | password
1 | NULL | NULL
2 | NULL | NULL
可以制作这个副本吗?