Corrected foreign key constraint argument order
Added missing column type
Had to change the remoteentity column to string instead of text since Doctrine Migrations does not yet support key lengths