nkt/doctrine-columns

Code entities fast

Installs: 50

Dependents: 0

Stars: 15

Watchers: 1

Forks: 1

Open Issues: 2

Language: PHP

0.1.1 2014-03-25 22:08 UTC

README

Why?

Because stop copy-paste code. Reuse it!

How!?

Just use column-trait, that you need.

use Nkt\Column;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="books")
 */
class Book
{
    use Column\Id;
    use Column\Name;
    use Column\Description;
    use Column\Price;

    public function __construct($name, $description)
    {
        $this->setName($name);
        $this->setDescription($description);
    }
}

How I can help?

Add your popular column and get rid of copy-paste!

License

MIT