Propel2 icon indicating copy to clipboard operation
Propel2 copied to clipboard

Added functionality to use foreignSchema attribute of foreign-key tag…

Open surekap opened this issue 5 years ago • 1 comments

Reference: https://github.com/propelorm/Propel/issues/191

The foreignSchema attribute of the foreign-key tag can be used on MySQL to link to other databases According to the documentation provided at: http://propelorm.org/documentation/cookbook/using-sql-schemas.html

In databases which support schemas (MySQL), there is no way to add foreign keys across databases.

This PR enables the foreign key relationships by using the database name as the schema name in these cases.

Tested with MySQL

surekap avatar Nov 14 '20 08:11 surekap

ping @surekap

dereuromark avatar Apr 06 '22 15:04 dereuromark