uam/propel-addressable-behavior
Composer 安装命令:
composer require uam/propel-addressable-behavior
包简介
A Propel behavior that adds address-related fields to a table.
关键字:
README 文档
README
The Addressable behavior adds address-related fields to a table.
Requirements
This behavior requires Propel >= 1.6.0.
Installation
Get the code by adding the following line to your composer.json file:
require: { "opichon/propel-addressable-behavior": "dev-master" }
Then run:
php composer.phar install
or
php composer.phar update
Configuration
Add the following to your propel.ini or build.properties file.
propel.behavior.addressable.class: AddressableBehavior
Usage
In the Propel schema
Add the behavior to the relevant table's schema definition:
<?xml version="1.0" encoding="utf-8"?> <database name="default" namespace="My\App\lib" defaultIdMethod="native"> <table name="document" phpName="Document" idMethod="native"> <!-- you column definitions --> <behavior name="addressable" /> </table> </database>
统计信息
- 总下载量: 797
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-03-09