Model 使用Doctrine::generateYamlFromDb()时,我可以指定要使用的前缀吗?
使用Doctrine::generateYamlFromDb()时,我可以指定要使用的前缀吗 例如,如果表名为“user”,默认情况下,生成的类名为“user”。我可以确保类名(和文件名)是“PrefixUser”吗 未测试:DModel 使用Doctrine::generateYamlFromDb()时,我可以指定要使用的前缀吗?,model,code-generation,doctrine,yaml,doctrine-1.2,Model,Code Generation,Doctrine,Yaml,Doctrine 1.2,使用Doctrine::generateYamlFromDb()时,我可以指定要使用的前缀吗 例如,如果表名为“user”,默认情况下,生成的类名为“user”。我可以确保类名(和文件名)是“PrefixUser”吗 未测试:D //Doctrine_Core::generateYamlFromDb($yamlPath, array $connections = array(), array $options = array()) Doctrine_Core::generateYamlFrom
//Doctrine_Core::generateYamlFromDb($yamlPath, array $connections = array(), array $options = array())
Doctrine_Core::generateYamlFromDb(
'schema.yml',
array(), // will use the default connection
array( // the $options array
'classPrefix'=>'Prefix',
'classPrefixFiles'=>true
)
);