src/Model/Entity.php
public function getAsserts()
    {
        $metadata = $this->app['validator.mapping.class_metadata_factory']->getMetadataFor(get_class($this));

        return array_map(
            function ($member) {
                return $member[0]->constraints;
            },
            $metadata->members
        );
    }
public function getAsserts()
    {
        $metadata = $this->app['validator.mapping.class_metadata_factory']->getMetadataFor(get_class($this));

        return array_map(
            function ($member) {
                return $member[0]->constraints;
            },
            $metadata->members
        );
    }
public function getAsserts ( ) { $ metadata = $ this -> app [ 'validator.mapping.class_metadata_factory' ] -> getMetadataFor ( get_class ( $ this ) ) ; return array_map ( function ( $ member ) { return $ member [ 0 ] -> constraints ; } , $ metadata -> members ) ; }
Model validation metadata getter

@return array
Model validation metadata getter