Skip to content

Commit

Permalink
[Form] added method guessPattern to FormTypeGuesserInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
ruian committed Apr 23, 2012
1 parent 9aa933e commit 9ba101a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Form/DoctrineMongoDBTypeGuesser.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -147,7 +147,17 @@ public function guessMaxLength($class, $property)
} }
} }


/**
* {@inheritDoc}
*/
public function guessMinLength($class, $property) public function guessMinLength($class, $property)
{
}

/**
* @inheritDoc
*/
public function guessPattern($class, $property)
{ {
$ret = $this->getMetadata($class); $ret = $this->getMetadata($class);
if ($ret && $ret[0]->hasField($property) && !$ret[0]->hasAssociation($property)) { if ($ret && $ret[0]->hasField($property) && !$ret[0]->hasAssociation($property)) {
Expand Down

0 comments on commit 9ba101a

Please sign in to comment.