local/modules/Klikandpay/Model/Base/KlikandpayReturn.php
/**
     * Checks and repairs the internal consistency of the object.
     *
     * This method is executed after an already-instantiated object is re-hydrated
     * from the database.  It exists to check any foreign keys to make sure that
     * the objects related to the current object are correct based on foreign key.
     *
     * You can override this method in the stub class, but you should always invoke
     * the base method from the overridden method (i.e. parent::ensureConsistency()),
     * in case your model changes.
     *
     * @throws PropelException
     */
Checks and repairs the internal consistency of the object.
This method is executed after an already-instantiated object is re-hydrated
from the database.  It exists to check any foreign keys to make sure that
the objects related to the current object are correct based on foreign key.

You can override this method in the stub class, but you should always invoke
the base method from the overridden method ),
in case your model changes.


Checks and repairs the internal consistency of the object . This method is executed after an already - instantiated object is re - hydrated from the database . It exists to check any foreign keys to make sure that the objects related to the current object are correct based on foreign key . You can override this method in the stub class but you should always invoke the base method from the overridden method ) in case your model changes .
public function ensureConsistency()
    {
        if ($this->aOrder !== null && $this->order_id !== $this->aOrder->getId()) {
            $this->aOrder = null;
        }
    }
public function ensureConsistency ( ) { if ( $ this -> aOrder !== null && $ this -> order_id !== $ this -> aOrder -> getId ( ) ) { $ this -> aOrder = null ; } }
Checks and repairs the internal consistency of the object.
Checks and repairs the internal consistency of the object .