Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

PHPUnit fixtures with many many extrafields


Reply

2 Posts   780 Views

Avatar
fj

12 February 2011 at 12:46am Community Member, 7 Posts

Hi there,
how can I add many many extrafield data to a yaml fixture file for PHPUnit testing?
I know I can add the many many relationsship itself using "=>class.instance1", but
how can I add extrafield information to that relationship?
thanks, roman

Avatar
swaiba

12 February 2011 at 1:08am Forum Moderator, 1796 Posts

something to do with this... http://api.silverstripe.org/trunk/sapphire/model/DataObject.html#var$many_many_extraFields