Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public static function convertToDatabaseValue($value, QueryBuilder $qb) |
||
27 | { |
||
28 | if ($type = DBALTypesResolver::tryGetTypeForValue($value)) { |
||
29 | return $type->convertToDatabaseValue( |
||
30 | $value, |
||
31 | $qb->getEntityManager()->getConnection()->getDatabasePlatform() |
||
32 | ); |
||
33 | } |
||
34 | |||
35 | return $value; |
||
36 | } |
||
37 | } |
||
38 |