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   814 Views

Avatar
fj

Community Member, 7 Posts

12 February 2011 at 12:46am

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

Forum Moderator, 1807 Posts

12 February 2011 at 1:08am

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