Permalink
Browse files

Fixed nested messaging for grouped exceptions.

  • Loading branch information...
alganet committed Aug 11, 2011
1 parent 00b4c24 commit cb6a14e02e2f89df9bc4da4da4d088bd48b45d30
@@ -44,12 +44,14 @@ public function getRelated($full=false)
public function getTemplate()
{
if (!empty($this->template))
$parentTemplate = parent::getTemplate();
if (!empty($this->template) && $this->template != $parentTemplate)
return $this->template;
if (1 === count($this->related))
return current($this->related)->getTemplate();
else
return parent::getTemplate();
return $parentTemplate;
}
}
@@ -39,6 +39,16 @@ public function providerForArray()
array(array(1, 2, 3)),
array(new \ArrayObject),
);
$validator = v::alnum()->length(1,10);
$validator = new \Respect\Validation\Rules\AllOf(
new Respect\Validation\Rules\Alnum(),
new Respect\Validation\Rules\Length(1,10)
);
}
public function providerForNotArray()

0 comments on commit cb6a14e

Please sign in to comment.