Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function updateParentUrl($old, $new) { |
||
31 | |||
32 | $connection = Propel::getWriteConnection(RouteTableMap::DATABASE_NAME); |
||
33 | $sql = "UPDATE route SET parent_url = REPLACE(parent_url,:old,:new) WHERE parent_url LIKE CONCAT(:old ,'%')"; |
||
34 | $connection->prepare($sql)->execute([':old' => $old, ':new' => $new]); |
||
35 | |||
36 | } |
||
37 | |||
47 | } |