Empty an ezkeyword field in PHP ?

Empty an ezkeyword field in PHP ?

Wednesday 14 October 2009 1:28:32 pm - 3 replies

Modified on Wednesday 14 October 2009 1:30:25 pm by Benoit Vodkaster

Author Message

Piotrek Karaƛ

Wednesday 14 October 2009 9:33:27 pm

Try investigating eZKeywordType::deleteStoredObjectAttribute() method.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Benoit Vodkaster

Thursday 15 October 2009 7:14:11 am

Thanks Piotrek

I just did a

  $dataType = $newContentObjectAttribute->dataType();
  $dataType->deleteStoredObjectAttribute($newContentObjectAttribute);

and it works fine
Thanks

Hugues Charleux

Wednesday 29 September 2010 3:36:28 am

Sorry to up this one year old topic but I just ran into the same issue (except I did not notice this behavior before production stage x( )

I just filled up a ticket on issues.ez.no [1] as I think we should not have to make a workarround for this but fromString should empty attribute if an empty param is given (as it does for other datatypes).

[1] http://issues.ez.no/IssueView.php?Id=17352&activeItem=1

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.