null, "presupuesto_id" => null, "tarifa_extra_id" => null, "precio_total" => null, "margen" => null, "created_at" => null, "updated_at" => null, ]; protected $casts = [ "presupuesto_id" => "int", "tarifa_extra_id" => "int", "precio_total" => "float", "margen" => "float", ]; public function maquinas() : array { $m = model(TarifaExtraMaquinaModel::class); return $m->where("tarifa_extra_id",$this->attributes["tarifa_extra_id"])->findAll(); } public function tarifa() : TarifaextraEntity { $m = model(TarifaextraModel::class); return $m->find($this->attributes["tarifa_extra_id"]); } }