php – 可以加载doctrine灯具而不删除数据库
发布时间:2020-05-25 09:54:50 所属栏目:PHP 来源:互联网
导读:我已经在教义中定义了一些装置. 当我尝试使用这个运行 php app / console doctrine:fixtures:load然后它要求我清除数据库. 是否可以加载它而不需要清除数据库. 我记得Django具有可以单独加载的灯具,而不需要清除现有的数据库 使用–append选项 php app/cons
|
我已经在教义中定义了一些装置. 当我尝试使用这个运行 php app / console doctrine:fixtures:load然后它要求我清除数据库. 是否可以加载它而不需要清除数据库. 我记得Django具有可以单独加载的灯具,而不需要清除现有的数据库 使用–append选项php app/console help doctrine:fixtures:load Usage: doctrine:fixtures:load [--fixtures[="..."]] [--append] [--em="..."] [--purge-with-truncate] Options: --fixtures The directory or file to load data fixtures from. (multiple values allowed) --append Append the data fixtures instead of deleting all data from the database first. --em The entity manager to use for this command. --purge-with-truncate Purge data by using a database-level TRUNCATE statement (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
