开发者

Doctrine Connection export() and export option in yml

i got a (or rather 2) small question(s)

from doctrine manual

$conn->export->createTable('tes开发者_C百科t', array('name' => array('type' => 'string')));
$conn->execute('INSERT INTO test (name) VALUES (?)', array('jwage'));

whats the $conn->export() abt. i mean, the export(). whats it for?

has it got any thing to do with the export option in the data fixtures yaml file? whats does export and validate do? any where i can get a list of available "attributes" and what they do?

User:
  columns:
    ...
  attributes:
    export: all
    validate: true


It has nothing to do with the attributes. It is just the module/class that handels database creation/altering.

look at this page in the manual: http://www.doctrine-project.org/documentation/manual/1_2/en/database-abstraction-layer#export

The Export module provides methods for managing database structure. The methods can be grouped based on their responsibility: create, edit (alter or update), list or delete (drop) database elements.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜