File: D:/HostingSpaces/ZelfVerkopen/zelfverkopen.nl/app/KommaApp/Realworks/Models/RealworkObject.php
<?php
namespace App\KommaApp\Realworks\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
/**
* Class Object
*
* Represents a house or so called property object. This is the root class
*
* @package App\KommaApp\Realworks\Models
* @property int id
* @property int $nvm_vestiging_nummer
* @property int $company
* @property int $afdeling
* @property int $tiara_id
* @property int $system_id
* @property int $code
* @property string raw_json
* @property string public_path
* @property-read \App\KommaApp\Realworks\Models\ObjectDetails $objectDetails
* @mixin \Eloquent
*/
class RealworkObject extends Model
{
protected $table = 'objects';
public function objectDetails():HasOne
{
return $this->hasOne(ObjectDetails::class, 'object_id');
}
}