如何在Doctrine 2中使用readOnly标志?

3

Doctrine的实体可以有标志readOnly

如何使用readOnly标志?

/** @Entity(readOnly) */ <-- like this?
/** @Entity(readOnly=true) */ <-- or like this?
class User
{
    //...
}
1个回答

12

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接