Bug #1456

Empty array causes PDO exception if not documented as @reference

Added by Robert Lemke over 13 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
Persistence
Target version:
-
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.

Also available in: Atom PDF