coderxlsn/doctrine_validate_frame
Composer 安装命令:
composer require coderxlsn/doctrine_validate_frame
包简介
Validate Text
README 文档
README
Installation
Simplest is to add the following to composer.json:
{
"require": {
"coderxlsn/doctrine_validate_frame": "~1.0"
}
}
And then run:
php composer.phar install
Alternately, use git to install this as a submodule:
git submodule add git://github.com/coderxlsn/CoderxlsnValidate vendor/coderxlsn
Usage
Entity
Add to validate model
namespace My; namespace My\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\EntityListeners({ "CoderxlsnValidate\Doctrine\Listener\IframeValidate"}) * @ORM\Table(name="events") */ class Model { /** * @ORM\Id * @ORM\Column(type="integer",unique=true); * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @ORM\Column(name="name", type="string", length=255, nullable=false)) */ protected $name;
If the upgrade falls text frame , an error is sent to the email admin
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-05-05