Skip to content

Meta Model

Backs the shared meta table used across spaces, terms, users, and other object types.

Table

  • Table: fcom_meta

  • Primary key: id

  • Extends: Model

Attributes

ColumnTypeNullableDefaultDescription
idBIGINT UNSIGNEDNoPrimary key for the row.
object_typeVARCHAR(50)NoDiscriminator used to reuse the same table for multiple object types.
object_idBIGINTYesAssociated object ID, interpreted together with the object type.
meta_keyVARCHAR(100)NoMeta Key stored for this record.
valueLONGTEXTYesSerialized meta value.
created_atTIMESTAMPYesCreation timestamp maintained by the ORM.
updated_atTIMESTAMPYesUpdate timestamp maintained by the ORM.

Relationships

MethodTypeTargetNotes
No relationships are declared on this model.

Scopes

ScopeParametersPurpose
ByType$query, $typeBy Type scope declared on the model.
ByMetaKey$query, $keyBy Meta Key scope declared on the model.
ByObjectId$query, $objectIdBy Object Id scope declared on the model.

Key Methods

MethodDescription
No additional public methods are documented for this model.

Usage Examples

php
use FluentCommunity\App\Models\Meta;

$records = Meta::query()
    ->byType('example')
    ->limit(10)
    ->get();

$first = Meta::query()->first();

FluentCommunity developer documentation