The number of items in the two tables is different because one contenobject can have several versions. I think of you would count the distinct contentobject_ids in the version table you should get the same number for both (not sure)
Generally I would not worry about the internal workings of EZ for this. To make an object avilable no matter whether it is translated in the current language or not, just tick the checkbox for 'Use the main language if there is no prioritized translation.' for this object (it is in the block translations of the detailed view of the object).
If this should be enabled by default for all objects of this class, tick the checkbox for 'default object availability' when editing the class. Please note that any changes to this setting will not affect existing objects, so you have to change all existing objects manually (or maybe per script).
Check e.g. here
http://ez.no/community/developer/specs/improved_multi_language_in_ez_publish_rev_2 under 'ignoring translation'.
Hi Claudia,
I noticed about versions, that isn't the problem. The problem is that i have diferent values for language_mask in both tables for the same object. I was making the sql to make the manual change to the objects when I noticed that. I think that the value should be the same in both tables, no mather wich version, but it isn't. I dont wanna change anything in any table until i know if i can change it without later problems.
Hi,
I've found another thing:
If i check "Default object availability" in the setup->class menu the new objects are created with the right value in both tables. Is it possible that the system is only using the table ezcontentobject to see the availability of an object?
The way I understand the docu having different language masks this is normal. Description for language_mask for contentobject:
The sum of the ID numbers of the languages in which the last published version of the object exists. Please note that the ID numbers are powers of 2. 1 (2^0) is reserved for marking objects that should always be available. Objects that are always available will be fetched even if they do not exist in any of the site/prioritized languages (the initial/main language of the object will be used).
Description for language_mask for contentobjectversion:
The sum of the ID numbers of the languages in which the version exists plus 1.