mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Restore merge exceptions and add structure factory method
This commit is contained in:
@@ -205,7 +205,7 @@ class Field implements Typed
|
||||
// type so we reject only those with different types.
|
||||
|
||||
if (($type = $other->getType()) !== $this->type) {
|
||||
//throw new MergeException(sprintf("Field %s can't be merged, incompatible types (%s vs %s)", $name, $type, $this->type));
|
||||
throw new MergeException(sprintf("Field %s can't be merged, incompatible types (%s vs %s)", $name, $type, $this->type));
|
||||
}
|
||||
|
||||
if ($other->isPrivate() !== $this->is_private) {
|
||||
@@ -217,7 +217,7 @@ class Field implements Typed
|
||||
}
|
||||
|
||||
if ($other->getFacetValuesLimit() !== $this->facet) {
|
||||
//throw new MergeException(sprintf("Field %s can't be merged, incompatible facet eligibility", $name));
|
||||
throw new MergeException(sprintf("Field %s can't be merged, incompatible facet eligibility", $name));
|
||||
}
|
||||
|
||||
$thesaurus_roots = null;
|
||||
|
Reference in New Issue
Block a user