zflabs/odm-fixture

使用 Doctrine ODM 生成 fixture 模块的插件

0.1.2 2015-06-21 21:07 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:44:38 UTC


README

使用 Doctrine ODM 生成 fixture 模块的插件

安装

安装非常简单,添加 composer.json 文件:

    "zflabs/odm-fixture", "dev-master"

下一步是更新 composer

    php composer.phar self-update
    php composer.phar install

在 module.config.php 文件中,您应该通知 fixtures 所在的文件夹位置,例如

    'zflabs-odm-fixture' => array(
        __NAMESPACE__.'_fixture' => __DIR__ . '/../src/'.__NAMESPACE__.'/Fixture',
    ),

使用终端命令来旋转 fixture

    vendor/bin/ZFLabs odm-fixture load