dudapiotr / ZfTable

*Not supported*ZfTable 3.1. Awesome ZF2 table / grid (and much much more) generator with huge possibilities of decorating and conditioning. Integrated with DataTables, Doctrine 2, Bootstrap 2.0 and 3.0.
http://dudapiotrek.laohost.net/
MIT License
75 stars 59 forks source link

Error producing an iterator #31

Open squareconcepts opened 9 years ago

squareconcepts commented 9 years ago

I am using zf2 with doctrine2. Everything is working fine. But when I have an entity with two identifiers I get an "Error producing an iterator" exception. What am I doing wrong?

class User implements InputFilterAwareInterface { /* ... */

/**
 * @var integer
 *
 * @ORM\Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=true)
 * @ORM\Id
 * @ORM\GeneratedValue(strategy="NONE")
 */
private $id;

/**
 * @var integer
 *
 * @ORM\Column(name="user_profile_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
 * @ORM\Id
 * @ORM\GeneratedValue(strategy="NONE")
 */
private $userProfileId;

/* .. */

}

When I remove @ORM\Id from $userProfileId everything is working ok. But putting it back I get this "Error producing an iterator" exception.