ORIENT/plugins/rainlab/blog/models/PostCategoryGroupPivot.php

31 lines
526 B
PHP

<?php namespace RainLab\Blog\Models;
use Model;
/**
* Model
*/
class PostCategoryGroupPivot extends Model
{
use \October\Rain\Database\Traits\Validation;
/**
* @var string The database table used by the model.
*/
public $table = 'rainlab_blog_post_cat_group';
public $belongsTo = [
'categoryGroup' => [
'RainLab\Blog\Models\CategoryGroup',
'key' => 'group_id'
],
];
/**
* @var array Validation rules
*/
public $rules = [
];
}