public function postInsert(ConnectionInterface $con = null)
    {
        parent::postInsert($con);

        $this->dispatchEvent(TheliaEvents::AFTER_CREATEADDRESS, new AddressEvent($this));
    }
public function postInsert(ConnectionInterface $con = null)
    {
        parent::postInsert($con);

        $this->dispatchEvent(TheliaEvents::AFTER_CREATEADDRESS, new AddressEvent($this));
    }
public function postInsert ( ConnectionInterface $ con = null ) { parent :: postInsert ( $ con ) ; $ this -> dispatchEvent ( TheliaEvents :: AFTER_CREATEADDRESS , new AddressEvent ( $ this ) ) ; }
Code to be run after inserting to database
@param ConnectionInterface $con
Code to be run after inserting to database