Bug #1456
Empty array causes PDO exception if not documented as @reference
Start date:
2008-09-02
Due date:
% Done:
100%
Estimated time:
PHP Version:
Has patch:
Complexity:
Description
Consider this model:
/** *@entity */ class { /** * @var array */ protected $subObjects = array(); }
This will result in a PDO exception because the type of the array items cannot be determined and no @reference annotation is given.
Even if multi-value properties of different types are not allowed (yet), there should be some proper handling for these cases.