coderxlsn / doctrine_validate_frame
Validate Text
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/coderxlsn/doctrine_validate_frame
Requires
- php: >=5.5
- doctrine/common: ~2.4
- doctrine/orm: ~2.4
Requires (Dev)
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2025-10-12 01:56:52 UTC
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