oligus/doctrine-fixtures
最新稳定版本:0.1.5
Composer 安装命令:
composer require oligus/doctrine-fixtures
包简介
Doctrine fixtures
README 文档
README
Simple fixture loader for Doctrine.
Load XML fixtures into database using entity manager.
Quick start
$ composer require oligus/doctrine-fixtures --dev
Load all fixtures in a directory
$fixture = new FixtureManager($em, new XmlLoader('path/to/fixtures')); $fixture->loadAll();
Load a single fixture file
$fixture = new FixtureManager($em, new XmlLoader()); $fixture->loadFile('path/to/fixtures/data_table.xml');
Availible Loaders
- Xml Loader
- Csv Loader
Fixtures
Creating XML fixture from mysql database
$ mysqldump -h localhost -u username --password=password --xml -t database data_table --where="id='1'"
统计信息
- 总下载量: 5.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-07