Minor fix on object table. Command buttons are correctly enabled when
user select items using keyboard.
Fixed the incorrect creation of foreign keys on many-to-many
relationships (issue #348)

Fixed the conversion of self many-to-many relationships.
Merge branch 'fix-bug-348' into develop