Skip to content

Instantly share code, notes, and snippets.

@andrconstruction
andrconstruction / Application.Entity.Brand.php
Created May 1, 2018 13:18 — forked from aronkerr/Application.Entity.Brand.php
ZF2 Form Collection Validation - Unique
<?php
namespace Application\Entity
class Brand
{
/**
* @var string
\*/
protected $name;
<?php
namespace Application\Form;
use Application\Entity\ProductDetails;
use Doctrine\Common\Persistence\ObjectManager;
use DoctrineModule\Stdlib\Hydrator\DoctrineObject as DoctrineHydrator;
use Zend\Form\Fieldset;
use Zend\InputFilter\InputFilterProviderInterface;