Permalink
Browse files

[Form] added method `guessPattern` to FormTypeGuesserInterface

  • Loading branch information...
1 parent 9aa933e commit 9ba101abde3c3a6354b86f501ed05f8d9e8fd816 @ruian ruian committed Apr 13, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 Form/DoctrineMongoDBTypeGuesser.php
@@ -147,8 +147,18 @@ public function guessMaxLength($class, $property)
}
}
+ /**
+ * {@inheritDoc}
+ */
public function guessMinLength($class, $property)
{
+ }
+
+ /**
+ * @inheritDoc
+ */
+ public function guessPattern($class, $property)
+ {
$ret = $this->getMetadata($class);
if ($ret && $ret[0]->hasField($property) && !$ret[0]->hasAssociation($property)) {
$mapping = $ret[0]->getFieldMapping($property);

0 comments on commit 9ba101a

Please sign in to comment.