Skip to content

Commit

Permalink
Fix missing bit in the InlineConstraint migration
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Jan 30, 2015
1 parent a644e88 commit fc2219a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Validator/Constraints/InlineConstraint.php
Expand Up @@ -17,4 +17,11 @@
*/
class InlineConstraint extends BaseInlineConstraint
{
/**
* {@inheritDoc}
*/
public function validatedBy()
{
return 'sonata.admin.validator.inline';
}
}
16 changes: 15 additions & 1 deletion Validator/InlineValidator.php
Expand Up @@ -11,11 +11,25 @@
namespace Sonata\AdminBundle\Validator;

use Sonata\CoreBundle\Validator\InlineValidator as BaseInlineValidator;
use Sonata\AdminBundle\Validator\ErrorElement;

/**
* @deprecated
*/
class InlineValidator extends BaseInlineValidator
{

/**
* @param mixed $value
*
* @return ErrorElement
*/
protected function getErrorElement($value)
{
return new ErrorElement(
$value,
$this->constraintValidatorFactory,
$this->context,
$this->context->getGroup()
);
}
}

0 comments on commit fc2219a

Please sign in to comment.