$relations is keyed by $relation->getName(), so multiple foreign keys that resolve to the same related model name (e.g., created_by and updated_by both referencing user) will silently overwrite each other and only one relation will be generated. Consider making relation names unique (e.g., include FK column(s) or constraint name in the generated relation name) or explicitly detecting collisions and throwing a clear exception so the user can resolve it.
Originally posted by @Tigrov in #157 (comment)
$relationsis keyed by$relation->getName(), so multiple foreign keys that resolve to the same related model name (e.g.,created_byandupdated_byboth referencinguser) will silently overwrite each other and only one relation will be generated. Consider making relation names unique (e.g., include FK column(s) or constraint name in the generated relation name) or explicitly detecting collisions and throwing a clear exception so the user can resolve it.Originally posted by @Tigrov in #157 (comment)