Collaboration.php
3 weeks ago
CollaborationComment.php
3 weeks ago
CollaborationCommentSeen.php
3 weeks ago
CollaborationConnected.php
3 weeks ago
CollaborationSent.php
3 weeks ago
Collection.php
3 weeks ago
CollectionItem.php
3 weeks ago
Media.php
3 weeks ago
Page.php
3 weeks ago
Post.php
3 weeks ago
PostMeta.php
3 days ago
Reference.php
3 weeks ago
Term.php
3 weeks ago
TermMeta.php
3 weeks ago
TermTaxonomy.php
3 weeks ago
User.php
3 weeks ago
UserMeta.php
3 weeks ago
TermTaxonomy.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Kirki\App\Models; |
| 4 | |
| 5 | use Kirki\Framework\Database\Query\Model; |
| 6 | |
| 7 | class TermTaxonomy extends Model |
| 8 | { |
| 9 | protected $table = 'term_taxonomy'; |
| 10 | |
| 11 | protected $primary_key = 'term_taxonomy_id'; |
| 12 | |
| 13 | protected $timestamps = false; |
| 14 | |
| 15 | protected $casts = [ |
| 16 | 'term_taxonomy_id' => 'integer', |
| 17 | 'term_id' => 'integer', |
| 18 | 'parent' => 'integer', |
| 19 | 'count' => 'integer', |
| 20 | ]; |
| 21 | |
| 22 | protected $fillable = [ |
| 23 | 'term_id', |
| 24 | 'taxonomy', |
| 25 | 'description', |
| 26 | 'parent', |
| 27 | 'count', |
| 28 | ]; |
| 29 | |
| 30 | public function term() |
| 31 | { |
| 32 | return $this->belongs_to(Term::class, 'term_id', 'term_id'); |
| 33 | } |
| 34 | } |
| 35 |