Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public static function convertToDatabaseValue($value, QueryBuilder $qb) |
||
16 | { |
||
17 | if ($type = DBALTypesResolver::tryGetTypeForValue($value)) { |
||
18 | return $type->convertToDatabaseValue( |
||
19 | $value, |
||
20 | $qb->getEntityManager()->getConnection()->getDatabasePlatform() |
||
21 | ); |
||
22 | } |
||
23 | |||
24 | return $value; |
||
25 | } |
||
26 | } |
||
27 |