Skip to content

Commit

Permalink
fix: fixed issue on creating a property defined in a super type
Browse files Browse the repository at this point in the history
  • Loading branch information
lvca committed Aug 28, 2023
1 parent ad0cf86 commit 5ab7595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/src/main/java/com/arcadedb/schema/DocumentType.java
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public Property getOrCreateProperty(final String propertyName, final Type proper
* @param ofType Linked type. For List the type contained in the list. For RID the schema type name.
*/
public Property getOrCreateProperty(final String propertyName, final Type propertyType, final String ofType) {
final Property p = properties.get(propertyName);
final Property p = getPolymorphicProperty(propertyName);
if (p != null) {
if (p.getType().equals(propertyType))
return p;
Expand Down

0 comments on commit 5ab7595

Please sign in to comment.