【发布时间】:2018-02-01 15:28:54
【问题描述】:
一个教义entity可以有标志readOnly。
readOnly这个标志应该怎么用?
/** @Entity(readOnly) */ <-- like this?
/** @Entity(readOnly=true) */ <-- or like this?
class User
{
//...
}
【问题讨论】:
标签: doctrine-orm annotations entity
一个教义entity可以有标志readOnly。
readOnly这个标志应该怎么用?
/** @Entity(readOnly) */ <-- like this?
/** @Entity(readOnly=true) */ <-- or like this?
class User
{
//...
}
【问题讨论】:
标签: doctrine-orm annotations entity
根据this answer和this issue,后者是要走的路:
/** @Entity(readOnly=true) */
【讨论】: