TypehintableBehavior icon indicating copy to clipboard operation
TypehintableBehavior copied to clipboard

Incorrect parameters should throw error

Open brainartdev opened this issue 12 years ago • 1 comments

I had problem with FOSUserBundle not respecting type hinting for cross reference tables. Probably same applies to FK tables too. I must point out, db was Postgres.

Turned out that referenced tables should be written with schema:

<parameter name="public.fos_group" value="FOS\UserBundle\Model\GroupInterface" />

Pretty logical. But model building should raise error when it encounters invalid properties. Right now it ignores them silently. See also #5.

brainartdev avatar Dec 17 '13 09:12 brainartdev

This error made me waste a day. I have an installation that use multiple schemas and if it wasn't for the previous comment i'd probably still fighting with this bug, is not that "logical" to figure out. Hoping to get a fix soon. Thanks!

FernandoFigueroa avatar Aug 05 '15 14:08 FernandoFigueroa