AFAICT, a contrainst I add to a bundle field definition with addConstraint() doesn't do anything.

I'm using this as part of a Commerce entity trait plugin, which could have something to do with it.

Comments

joachim created an issue. See original summary.

bojanz’s picture

Status: Active » Closed (duplicate)

Being discussed in the Commerce issue #2929160: constraints defined in fields defined in entity trait plugins don't work.

Right now it doesn't look like Entity API can do anything to avoid/fix this problem.