Fix getting foreign relation's primary key columns on DBAL < 2.3
Test on DBAL 2.4 and 2.5 (beta)