PHP code example of gm314 / siesta

1. Go to this page and download the library: Download gm314/siesta library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gm314 / siesta example snippets


$artist = new Artist();
$artist->setName("Jamie Woon");

$label = new Label();
$label->setName("PMR");
$label->setCity("London");
$label->addToArtistList($artist);

// save with cascade. will store both label and artist
$label->save(true);