# fluent-cart/1.6.4/app/Models/AttributeRelation.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 40 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Models/AttributeRelation.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Models/AttributeRelation.php
- Modified: 2025-10-14T16:36:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Models/AttributeRelation.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Models;

/**
 *  Attributes Relations Model - DB Model for Attributes Terms to Specific Variations
 * Maybe we don't need this model. For now, it's here
 *
 *  Database Model
 *
 * @package FluentCart\App\Models
 *
 * @version 1.0.0
 */
class AttributeRelation extends Model
{
	protected $table = 'fct_atts_relations';

	protected $fillable = [
		'group_id',
		'term_id',
		'object_id',
	];

	public function group()
	{
		return $this->belongsTo(AttributeGroup::class, 'group_id', 'id');
	}

	public function term()
	{
		return $this->belongsTo(AttributeTerm::class, 'term_id', 'id');
	}

	public function productDetails()
	{
		return $this->belongsTo(ProductDetail::class, 'object_id', 'id');
	}
}

```
