Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当两个模型同时与 belongsTo 和 hasOne 关系相关联时会发生什么? 框架是否检测到这种情况以避免检索太多数据?
编辑:特别是 CakePHP,尽管其他框架所做的也会有所帮助。
大多数框架都会延迟加载数据,即只有在访问对象属性时才检索数据。