protected function beforeProxy($method, $args)
    {
        // if method is defined as transaction method
        if (is_array($this->transactionMethods) && in_array($method, $this->transactionMethods)) {
            // begin transaction
            $this->db->beginTransaction();
        }
    }
protected function beforeProxy($method, $args)
    {
        // if method is defined as transaction method
        if (is_array($this->transactionMethods) && in_array($method, $this->transactionMethods)) {
            // begin transaction
            $this->db->beginTransaction();
        }
    }
protected function beforeProxy ( $ method , $ args ) { // if method is defined as transaction method if ( is_array ( $ this -> transactionMethods ) && in_array ( $ method , $ this -> transactionMethods ) ) { // begin transaction $ this -> db -> beginTransaction ( ) ; } }
Logic before proxy call to domain method

@param $method 	string 		- domain method name
@param $arg 		array 		- array of arguments for domain method

@return void
Logic before proxy call to domain method