Yes, the EC Directive establishing a General Framework for Equal Treatment in Employment and Occupation prohibits discrimination by association. Following the decision of the European Court of Justice in the case of Coleman v Attridge Law, UK discrimination law is being amended to expressly reflect this. The amendments are contained in the Equality Act, which will come into force in October 2010.