trait BelongsToModel (View source)

Properties

Model|string|null $model

Methods

model(Model|string|null $model = null)

No description

void
saveRelationships()

No description

void
loadStateFromRelationships(bool $andHydrate = false)

No description

string|null
getModel()

No description

Model|null
getRecord()

No description

Model|null
getModelInstance()

No description

Details

BelongsToModel model(Model|string|null $model = null)

No description

Parameters

Model|string|null $model

Return Value

BelongsToModel

void saveRelationships()

No description

Return Value

void

void loadStateFromRelationships(bool $andHydrate = false)

No description

Parameters

bool $andHydrate

Return Value

void

string|null getModel()

No description

Return Value

string|null

Model|null getRecord()

No description

Return Value

Model|null

Model|null getModelInstance()

No description

Return Value

Model|null