File "Meta.php"

Full path: C:/Inetpub/vhosts/drshti.com/httpdocs/wp-content/plugins/depicter/app/src/Database/Entity/Meta.php
File size: 530 B (530 B bytes)
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

<?php
namespace Depicter\Database\Entity;

use Averta\WordPress\Database\Entity\Model;

class Meta extends Model
{
	/**
	 * Resource name.
	 *
	 * @var string
	 */
	protected $resource = 'depicter_meta';

	/**
	 * Determines what fields can be saved without be explicitly.
	 *
	 * @var array
	 */
	protected $builtin = [
		'relation',
		'relation_id',
		'meta_key',
		'meta_value'
	];

	protected $guard = [ 'id' ];

	public function document()
    {
        return $this->belongsTo(Document::class, 'relation_id', 'id');
    }
}