phpcq/doctrine-validation

This package is abandoned and no longer maintained. No replacement package was suggested.

Validation tools for doctrine.

1.1.2 2015-07-13 18:02 UTC

This package is auto-updated.

Last update: 2021-11-27 07:00:23 UTC


README

Version Stable Build Status Upstream Build Status License Downloads

Multiple validators for doctrine users

Installation

Add to your composer.json in the require-dev section:

"phpcq/doctrine-validation": "~1.0"

Column name validator

Validates the column names to make sure you have configured your entities correctly.

Usage

Call the binary, will scan all files matching src/Entity/*.php:

./vendor/bin/validate-doctrine-entity-column-names.php

Optionally you can pass the path to the entity class files:

./vendor/bin/validate-doctrine-entity-column-names.php lib/Doctrine/Entities/*.php

If you prefer camelCase over underscore_case naming (which may be a bad practice for some database systems), you can enable it:

./vendor/bin/validate-doctrine-entity-column-names.php --camel-case