TypehintableBehavior
TypehintableBehavior copied to clipboard
Incorrect parameters should throw error
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.
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!