This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » Create content from Symfony stack
expandshrink

Create content from Symfony stack

Create content from Symfony stack

Tuesday 29 October 2013 10:20:40 am - 6 replies

Hi,

I try to create content from symfony with de createContentCommand from the cookbookBundle.

But I've got this error : SQLSTATE[42S22]: Column not found: 1054 Unknown column 'priority' in 'field list'

I have try to update my distribution files with the latest ezpublish-community-2013.09, and I've got again this error.

If you can help me to understand.
Thanks

Tuesday 29 October 2013 11:05:58 am

Hi Fabrice

can you be a bit more specific, e.g. adding the URL of the documentation page you are referring to, or attaching the code you are using as a GIST?

I guess you are not referring to my talk at the summercamp https://github.com/dfritschy/cjw-cookbook?

Regards, Donat

Tuesday 29 October 2013 11:22:58 am

Hi Fabrice

I think you missed this step in the upgrade procedure.

Tuesday 29 October 2013 11:48:42 am

Hi Jérôme, Donat,

Thank you for your response.

Jérôme, I have done this steps in the upgrade process.

The code I use is : https://github.com/ezsystems/CookbookBundle/blob/master/Command/CreateContentCommand.php

The error throws in this call :

$draft = $contentService->createContent( $contentCreateStruct, array( $locationCreateStruct ) );

 

Thank you.

Tuesday 29 October 2013 2:26:03 pm

Hi Fabrice,

it looks like database upgrade script is not complete, changes introduced in #778 are missing.

For the missing queries see here: https://github.com/ezsystems/ezpublish-legacy/pull/778/files#diff-5

Tuesday 29 October 2013 2:54:27 pm

Hi Petar,

Thank you. The database script solves my problem.

Tuesday 29 October 2013 3:17:19 pm

Good catch Petar!

I just added these additional instructions to the upgrade procedure.

Thank you! 

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from