| @@ 1066-1079 (lines=14) @@ | ||
| 1063 | ) |
|
| 1064 | ); |
|
| 1065 | ||
| 1066 | if ($id !== null) { |
|
| 1067 | $query->where( |
|
| 1068 | $query->expr->lAnd( |
|
| 1069 | $query->expr->eq( |
|
| 1070 | $this->dbHandler->quoteColumn('is_alias'), |
|
| 1071 | $query->bindValue(0, null, \PDO::PARAM_INT) |
|
| 1072 | ), |
|
| 1073 | $query->expr->eq( |
|
| 1074 | $this->dbHandler->quoteColumn('id'), |
|
| 1075 | $query->bindValue($id, null, \PDO::PARAM_INT) |
|
| 1076 | ) |
|
| 1077 | ) |
|
| 1078 | ); |
|
| 1079 | } |
|
| 1080 | ||
| 1081 | $query->prepare()->execute(); |
|
| 1082 | } |
|
| @@ 1471-1484 (lines=14) @@ | ||
| 1468 | ) |
|
| 1469 | ) |
|
| 1470 | ); |
|
| 1471 | } else { |
|
| 1472 | $query->where( |
|
| 1473 | $query->expr->lOr( |
|
| 1474 | $query->expr->eq( |
|
| 1475 | $this->dbHandler->quoteColumn('from_contentobject_id'), |
|
| 1476 | $query->bindValue($contentId, null, \PDO::PARAM_INT) |
|
| 1477 | ), |
|
| 1478 | $query->expr->eq( |
|
| 1479 | $this->dbHandler->quoteColumn('to_contentobject_id'), |
|
| 1480 | $query->bindValue($contentId, null, \PDO::PARAM_INT) |
|
| 1481 | ) |
|
| 1482 | ) |
|
| 1483 | ); |
|
| 1484 | } |
|
| 1485 | ||
| 1486 | $query->prepare()->execute(); |
|
| 1487 | } |
|