Skip to content
This repository was archived by the owner on Nov 17, 2021. It is now read-only.

phpcq/doctrine-validation

Repository files navigation

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

About

Multiple validators for doctrine users.

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published

Languages