I think you meant `$allPk = $table->getColumn($columnName)->isPrimaryKey() & $allPk;`