arambalakjian / DataObject-as-Page

A SilverStripe module for displaying DataObjects as Pages
53 stars 27 forks source link

odd onBeforeWrite behaviour #11

Closed thezenmonkey closed 11 years ago

thezenmonkey commented 12 years ago

Just noticed that any relation data in extended DOAP DataObjects isn't available to immediately to the onBeforeWrite call after hitting the Add button. Any manipulations need to wrapped in a if($this->ID != 0)

arambalakjian commented 11 years ago

I think this is standard in ModelAdmin/DataObject manipulation?