Flowdock

Notes posted by thesaint

RSS feed
October 18, 2008
0 thanks

Single Table Inheritance and Fixtures

All entries for fixtures for classes derived from the base class must go into the fixture file of the base class. Also, their type must be set. Example fixture:

company_one:
  name: My Company

firm_one:
  name: A Firm
  type: Firm

priority_client_with_p1:
  name: SuperVIPClient
  type: PriorityClient
  priority: 1