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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

OrderAttributes in ModelAdmin


Go to End


773 Views

Avatar
Matze0681

Community Member, 25 Posts

9 August 2010 at 4:36pm

hi,

im trying to add the Orders of a Member to the Members Managed Model in Modeladmin through the relation : Order got one Member and Member got many Orders. So far so good; I can now access the Orders and Payment entries from the selected Member in the Member section.

The problem is that i cant access the OrderAttributes which are related to the Order. I managed to display the correct summary_fields with a Decorator (OrderAttributeDecorator) , but i cant edit or view the entries in the tablelistfield cause it looks like the OrderAttributes dont got a ID. (the view and edit links are now generated without an itemid and causing an error)
i got the following message if i try to debug the DataObjectSet with the OrderAttributes(shortend):
___________________________
OrderItem class details

ID :
Quantity : 1
Order ID : The order has not been saved yet, so there is no ID
___________________________

The point is that is not true^^ the Order was definitly saved.

thanks in advance for your help!