Zend 1.11.11 Doctrine 2.1.2 initialising of associative proxy entities

蹲街弑〆低调 提交于 2019-12-06 06:58:06

Some of your annotations look a little wrong. Try fixing these up...

Class annotation

Lose the extra asterisks.

/** 
 * UserRoleResources 
 * 
 * @Table(name="user_role_resources") 
 * @Entity(repositoryClass="AJFIT\Repository\UserRoleResources") 
 */ 
class UserRoleResources {

Property annotation

Place the docblocks directly above the properties (no blank lines)

/**    
 * @var UserRoles    
 *    
 * @ManyToOne(targetEntity="UserRoles")    
 * @JoinColumn(name="role_fk", referencedColumnName="pk")    
 */     
private $roleFk;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!