public function onAfterWrite()
    {
        parent::onAfterWrite();

        if ($this->Customisation) {
            $data = unserialize($this->Customisation);

            if ($data instanceof ArrayList) {
                foreach ($data as $data_item) {
                    $data_item->ParentID = $this->ID;
                    $data_item->write();
                }

                $this->Customisation = null;
                $this->write();
            }
        }
    }
public function onAfterWrite()
    {
        parent::onAfterWrite();

        if ($this->Customisation) {
            $data = unserialize($this->Customisation);

            if ($data instanceof ArrayList) {
                foreach ($data as $data_item) {
                    $data_item->ParentID = $this->ID;
                    $data_item->write();
                }

                $this->Customisation = null;
                $this->write();
            }
        }
    }
public function onAfterWrite ( ) { parent :: onAfterWrite ( ) ; if ( $ this -> Customisation ) { $ data = unserialize ( $ this -> Customisation ) ; if ( $ data instanceof ArrayList ) { foreach ( $ data as $ data_item ) { $ data_item -> ParentID = $ this -> ID ; $ data_item -> write ( ) ; } $ this -> Customisation = null ; $ this -> write ( ) ; } } }
Perform post-DB write functions

@return void
Perform post - DB write functions