diff --git a/bundle/Command/ConvertXmlTextToRichTextCommand.php b/bundle/Command/ConvertXmlTextToRichTextCommand.php index b0f47332..a833eb3c 100644 --- a/bundle/Command/ConvertXmlTextToRichTextCommand.php +++ b/bundle/Command/ConvertXmlTextToRichTextCommand.php @@ -368,13 +368,13 @@ protected function convertFieldDefinitions($dryRun, OutputInterface $output) $output->writeln("Found $count field definiton to convert."); $updateQuery = $this->dbal->createQueryBuilder(); - $updateQuery->update('ezcontentclass_attribute', 'a') - ->set('a.data_type_string', ':newdatatypestring') + $updateQuery->update('ezcontentclass_attribute') + ->set('data_type_string', ':newdatatypestring') // was tagPreset in ezxmltext, unused in RichText - ->set('a.data_text2', ':datatext2') + ->set('data_text2', ':datatext2') ->where( $updateQuery->expr()->eq( - 'a.data_type_string', + 'data_type_string', ':olddatatypestring' ) ) @@ -462,18 +462,18 @@ protected function getFieldRows($datatypeString, $contentId, $offset, $limit) protected function updateFieldRow($dryRun, $id, $version, $datatext) { $updateQuery = $this->dbal->createQueryBuilder(); - $updateQuery->update('ezcontentobject_attribute', 'a') - ->set('a.data_type_string', ':datatypestring') - ->set('a.data_text', ':datatext') + $updateQuery->update('ezcontentobject_attribute') + ->set('data_type_string', ':datatypestring') + ->set('data_text', ':datatext') ->where( $updateQuery->expr()->eq( - 'a.id', + 'id', ':id' ) ) ->andWhere( $updateQuery->expr()->eq( - 'a.version', + 'version', ':version' ) ) diff --git a/bundle/Command/ImportXmlCommand.php b/bundle/Command/ImportXmlCommand.php index 351e4b27..24889564 100644 --- a/bundle/Command/ImportXmlCommand.php +++ b/bundle/Command/ImportXmlCommand.php @@ -261,23 +261,23 @@ protected function contentObjectAttributeExists($objectId, $attributeId, $versio protected function updateContentObjectAttribute($xml, $objectId, $attributeId, $version, $language) { $updateQuery = $this->dbal->createQueryBuilder(); - $updateQuery->update('ezcontentobject_attribute', 'a') - ->set('a.data_text', ':newxml') + $updateQuery->update('ezcontentobject_attribute') + ->set('data_text', ':newxml') ->where( $updateQuery->expr()->eq( - 'a.data_type_string', + 'data_type_string', ':datatypestring' ) ) ->andWhere( $updateQuery->expr()->eq( - 'a.contentobject_id', + 'contentobject_id', ':objectid' ) ) ->andWhere( $updateQuery->expr()->eq( - 'a.id', + 'id', ':attributeid' ) )