Corrected parameter name from "primaryTableName" to "foreignTableName"