function deleteStoredObjectAttribute($contentObjectAttribute, $version = null) { // Remove all ratings associated with thes objectAttribute; if ($version == null) { ezsrRatingObject::removeByObjectId($contentObjectAttribute->attribute('contentobject_id'), $contentObjectAttribute->attribute('id')); ezsrRatingDataObject::removeByObjectId($contentObjectAttribute->attribute('contentobject_id'), $contentObjectAttribute->attribute('id')); } }