PHP code example of tschallacka / storm-inherit-relations
1. Go to this page and download the library: Download tschallacka/storm-inherit-relations 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/ */
tschallacka / storm-inherit-relations example snippets
public $implement = [\Tschallacka\StormInheritRelations\Behavior\InheritRelations];
namespace Tschallacka\Example\Attribute;
use Winter\Storm\Database\Model;
use Tschallacka\StormInheritRelations\Behavior\InheritRelations;
class AttributeValue extends Model
{
public $primaryKey = 'value_id';
public $implement = [
InheritRelations::class
];
public $belongsTo = [
'attribute' => AttributeName::class,
];
}