yii2
yang163_yang
这个作者很懒,什么都没留下…
展开
-
ActiveRecord, Lazy and Eager Loading
Lazy and Eager Loading As described earlier, when you access the related objects for the first time, ActiveRecord will perform a DB query to retrieve the corresponding data and populate it into the转载 2014-12-29 11:19:44 · 292 阅读 · 0 评论 -
ActiveRecord Relation, 通过第三张表建立的关系
Relations with Junction Table Sometimes, two tables are related together via an intermediary table called a junction table. To declare such relations, we can customize the yii\db\ActiveQuery obje转载 2014-12-29 11:11:31 · 280 阅读 · 0 评论