aboutsummaryrefslogtreecommitdiff
path: root/lib/models/SimpleORMap.class.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2022-01-18 14:31:52 +0100
committerJan-Hendrik Willms <tleilax+github@gmail.com>2022-01-18 14:31:52 +0100
commit9a4c3ff7397652374e75f6379c3fccd507c5316f (patch)
tree996135557c408339ed8ac4b85ad03ec8778c9143 /lib/models/SimpleORMap.class.php
parent5c5969a146f5b80f689aa7eb880126951d702954 (diff)
Revert "throw exceptions when i18nstring is used with a composite primary key, fixes #535", re #535
This reverts commit c063caad1a65326d64cfa2aa4a101d6da71f3e3b.
Diffstat (limited to 'lib/models/SimpleORMap.class.php')
-rw-r--r--lib/models/SimpleORMap.class.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/models/SimpleORMap.class.php b/lib/models/SimpleORMap.class.php
index f170827..de444aa 100644
--- a/lib/models/SimpleORMap.class.php
+++ b/lib/models/SimpleORMap.class.php
@@ -296,10 +296,6 @@ class SimpleORMap implements ArrayAccess, Countable, IteratorAggregate
if (I18N::isEnabled()) {
if (isset($config['i18n_fields']) && count($config['i18n_fields']) > 0) {
- if (count($config['pk']) > 1) {
- throw new Exception('Can not define i18n fields on a composite primary key');
- }
-
$config['registered_callbacks']['before_store'][] = 'cbI18N';
$config['registered_callbacks']['after_delete'][] = 'cbI18N';
}