Right, it has a set of treaties, not a unified constitution. And there have been a number of cases in which member state laws clashed with EU laws:
https://en.wikipedia.org/wiki/Primacy_of_European_Union_law