Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php namespace Acrontum\Catalogue\Models;
- use Model;
- /**
- * Model
- */
- class Category extends Model
- {
- use \October\Rain\Database\Traits\Validation;
- use \October\Rain\Database\Traits\SimpleTree;
- /*
- * Validation
- */
- public $rules = [
- ];
- /*
- * Disable timestamps by default.
- * Remove this line if timestamps are defined in the database table.
- */
- public $timestamps = false;
- /**
- * @var string The database table used by the model.
- */
- public $table = 'acrontum_catalogue_category';
- public $attachOne = [
- 'image' => 'System\Models\File'
- ];
- /**
- * @var array Relations
- */
- public $belongsToMany = [
- 'products' => [
- 'Acrontum\Catalogue\Models\Product',
- 'table' => 'acrontum_catalogue_category_products'
- ]
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement