EzPublish 4.1.3 problem
You need to be logged in to post messages in the forums. New users may register here.
Matteo Mosangini
Member since: 12 July 2009
Posts: 11
|
Sunday 12 July 2009 2:04:01 pm
Hi,
I borrowed one of your scripts (addmissingobjectattributes.php) to build a simple deployment script.
I make a dump of db classes tables, check which classes have changed since last sync, insert those into the production database and then run a modified version of your script to update objects attributes.
At first no object was being updated because $attributesToRemove and $attributesToAdd arrays were always empty.
To make things work I had to modify your script:
|
|
Gunnstein Lye
Member since: 23 June 2008
Posts: 11
|
Monday 13 July 2009 1:09:43 am
I'm glad it was useful.
I'm not clear on what you changed - could you please post a diff of your change?
|
|
Matteo Mosangini
Member since: 12 July 2009
Posts: 11
|
Monday 13 July 2009 6:53:45 am
Diff against addmissingobjectattributes.php trunk:
|
|
Gunnstein Lye
Member since: 23 June 2008
Posts: 11
|
Friday 17 July 2009 1:40:54 am
The SQL change makes obvious sense. I should do it that way, thanks!
What I don't understand is the change in the foreach loop, where you change
|
|
Matteo Mosangini
Member since: 12 July 2009
Posts: 11
|
Friday 17 July 2009 6:46:48 am
You are right I made a mistake.
I didn't read the definition of eZContentObjectAttribute::fetch.
|
|
Gunnstein Lye
Member since: 23 June 2008
Posts: 11
|
Friday 17 July 2009 6:56:08 am
Thanks for feedback. I have comitted the SQL change.
|
|
You need to be logged in to post messages in the forums. New users may register here.