Yii Framework Forum: Fixtures: how create relation between fixtures? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Fixtures: how create relation between fixtures?

#1 User is offline   blaces 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 137
  • Joined: 06-April 12

Posted 20 February 2017 - 10:24 AM

Hi.

1. How can I create a parent-child fixture relation?
The models have 'parent_id', but I do not know how I can attach the fixture.

2. How can I create belongs-to fixture relation?
Like between the category and product models?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users