PHP Classes
elePHPant
Icontem

File: sample/Cst/update/index.php

Recommend this page to a friend!
  Classes of Rafael Becker  >  PHP Expressive  >  sample/Cst/update/index.php  >  Download  
File: sample/Cst/update/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Expressive
Base class for Object Relational Mapping
Author: By
Last change:
Date: 1 month ago
Size: 538 bytes
 

Contents

Class file image Download
<?php

require_once '../../../vendor/autoload.php';

use
Sample\Cst\Classes\Cst;
use
Solis\Breaker\TException;

try {

    require
'../../Database/config.php';

   
$instance = Cst::make([])->last();

    if (!empty(
$instance)) {
       
$instance->csttipo = 23;
       
$instance->cstcst = 'UPDATE TEST [' . uniqid(rand(), true) . ']';

        if(!empty(
$instance->update())){
           
var_dump(
               
Cst::make([])->last()
            );
        }
    }

} catch (
TException $exception) {
    echo
$exception->toJson();
}