# fluent-cart/1.4.1/app/Models/WpModels/TermRelationship.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.4.1. 26 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.4.1/code/app/Models/WpModels/TermRelationship.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.4.1/raw/app/Models/WpModels/TermRelationship.php
- Modified: 2025-11-20T13:11:16+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.4.1/code/app/Models/WpModels/TermRelationship.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Models\WpModels;

use FluentCart\App\Models\Concerns\CanSearch;
use FluentCart\App\Models\Model;

class TermRelationship extends Model
{
    use CanSearch;
    protected $table = 'term_relationships';

    protected $primaryKey = 'term_taxonomy_id';


    public function taxonomy()
    {
        return $this->hasOne(TermTaxonomy::class, 'term_taxonomy_id');
    }

    public function products()
    {
        return $this->hasMany(\FluentCart\App\Models\Product::class, 'ID', 'object_id');
    }
}

```
