18 lines
384 B
PHP
18 lines
384 B
PHP
<?php
|
|
namespace app\models;
|
|
|
|
/**
|
|
* Class CollectionsObjects
|
|
* @package app\models
|
|
* @property $id
|
|
* @property $object_id
|
|
* @property $collection_id
|
|
* @property $category_id
|
|
* @property Collections $collection
|
|
*/
|
|
class CollectionsObjects extends _Base {
|
|
public function getCollection() {
|
|
return $this->hasOne(Collections::class, ['id' => 'collection_id']);
|
|
}
|
|
}
|