Skip to content

Commit

Permalink
Add support for destination attribute in relship tags
Browse files Browse the repository at this point in the history
...
  • Loading branch information
helje5 committed Oct 31, 2024
1 parent bdbdcf4 commit bac0903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/ZeeQL/Access/ModelLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,9 @@ open class CoreDataModelLoader : ModelLoader {
else if xml.name == "to-many" { relship.isToMany = true }
else { relship.isToMany = boolValue(attrs["toMany"]) }

if let de = attrs["destinationEntity"] ?? attrs["to"], !de.isEmpty {
if let de = attrs["destinationEntity"]
?? attrs["to"] ?? attrs["destination"], !de.isEmpty
{
relship.destinationEntityName = de
}

Expand Down

0 comments on commit bac0903

Please sign in to comment.