Collaboration.php
1 month ago
CollaborationComment.php
1 month ago
CollaborationCommentSeen.php
1 month ago
CollaborationConnected.php
1 month ago
CollaborationSent.php
1 month ago
Collection.php
5 days ago
CollectionItem.php
1 month ago
Form.php
5 days ago
FormData.php
5 days ago
Media.php
1 month ago
Page.php
5 days ago
Post.php
1 month ago
PostMeta.php
2 weeks ago
Reference.php
1 month ago
Term.php
1 month ago
TermMeta.php
1 month ago
TermTaxonomy.php
1 month ago
User.php
1 month ago
UserMeta.php
1 month ago
TermMeta.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Kirki\App\Models; |
| 4 | |
| 5 | use Kirki\App\Casts\AsSerialize; |
| 6 | use Kirki\Framework\Database\Query\Model; |
| 7 | |
| 8 | class TermMeta extends Model |
| 9 | { |
| 10 | protected $table = 'termmeta'; |
| 11 | |
| 12 | protected $primary_key = 'meta_id'; |
| 13 | |
| 14 | protected $timestamps = false; |
| 15 | |
| 16 | protected $casts = [ |
| 17 | 'term_id' => 'integer', |
| 18 | 'meta_value' => AsSerialize::class, |
| 19 | ]; |
| 20 | |
| 21 | protected $fillable = [ |
| 22 | 'term_id', |
| 23 | 'meta_key', |
| 24 | 'meta_value', |
| 25 | ]; |
| 26 | } |
| 27 |