mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 23:08:37 +02:00
change egg relation of server to belongsTo
(fixes server creation)
This commit is contained in:
parent
72ede60af8
commit
437d32efae
@ -292,9 +292,9 @@ class Server extends Model implements Validatable
|
|||||||
/**
|
/**
|
||||||
* Gets information for the egg associated with this server.
|
* Gets information for the egg associated with this server.
|
||||||
*/
|
*/
|
||||||
public function egg(): HasOne
|
public function egg(): BelongsTo
|
||||||
{
|
{
|
||||||
return $this->hasOne(Egg::class, 'id', 'egg_id');
|
return $this->belongsTo(Egg::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function eggVariables(): HasMany
|
public function eggVariables(): HasMany
|
||||||
|
Loading…
x
Reference in New Issue
Block a user