original_string: function deleteStoredObjectAttribute( $contentObjectAttribute, $version = null )
      {
          $version = $contentObjectAttribute->objectVersion();
          if ( !is_null( $version ) &&
               $version->attribute( 'status' ) == eZContentObjectVersion::STATUS_PUBLISHED )
          {
              $contentObjectID = $contentObjectAttribute->attribute( 'contentobject_id' );
              $languageID = $contentObjectAttribute->attribute( 'language_id' );
              eZPersistentObject::removeObject( ezcomComment::definition(), 
                                                array( 'contentobject_id' => $contentObjectID,
                                                       'language_id' => $languageID ) );
          }
      }
code: function deleteStoredObjectAttribute( $contentObjectAttribute, $version = null )
      {
          $version = $contentObjectAttribute->objectVersion();
          if ( !is_null( $version ) &&
               $version->attribute( 'status' ) == eZContentObjectVersion::STATUS_PUBLISHED )
          {
              $contentObjectID = $contentObjectAttribute->attribute( 'contentobject_id' );
              $languageID = $contentObjectAttribute->attribute( 'language_id' );
              eZPersistentObject::removeObject( ezcomComment::definition(), 
                                                array( 'contentobject_id' => $contentObjectID,
                                                       'language_id' => $languageID ) );
          }
      }
code_tokens: function deleteStoredObjectAttribute ( $ contentObjectAttribute , $ version = null ) { $ version = $ contentObjectAttribute -> objectVersion ( ) ; if ( ! is_null ( $ version ) && $ version -> attribute ( 'status' ) == eZContentObjectVersion :: STATUS_PUBLISHED ) { $ contentObjectID = $ contentObjectAttribute -> attribute ( 'contentobject_id' ) ; $ languageID = $ contentObjectAttribute -> attribute ( 'language_id' ) ; eZPersistentObject :: removeObject ( ezcomComment :: definition ( ) , array ( 'contentobject_id' => $ contentObjectID , 'language_id' => $ languageID ) ) ; } }
docstring: When deleting the content object, deleting all the comments.
  @see kernel/classes/eZDataType#deleteStoredObjectAttribute($objectAttribute, $version)
docstring_tokens: When deleting the content object deleting all the comments .