Logo
Explore Help
Sign In
mirror/librenms-librenms
1
0
Fork 0
You've already forked librenms-librenms
mirror of https://github.com/librenms/librenms.git synced 2024-10-07 16:52:45 +00:00
Code Issues Actions Packages Projects Releases Wiki Activity
Files
568ee86eb5d02fe293f90f1b9b66f50654929436
librenms-librenms/app/Models/PortVlan.php

22 lines
419 B
PHP
Raw Normal View History

Delete ports via eloquent event (#11354) * Delete ports via eloquent event Chunk delete during purge all operations so we don't use too much memory. * protect against missing device * fix whitespace * fetch less from the database when deleting a device's ports fix output
2020-04-16 09:19:58 -05:00
<?php
namespace App\Models;
class PortVlan extends PortRelatedModel
{
protected $table = 'ports_vlans';
protected $primaryKey = 'port_vlan_id';
public $timestamps = false;
Convert Device>vlan view to Laravel (#12163) * Convert Device>vlan view to Laravel
2020-10-15 02:40:44 +02:00
public function getUntaggedAttribute($value)
{
if (! $value) {
Check if vlan->port exists (#13305)
2021-10-01 14:42:27 +02:00
if ($this->port && $this->vlan == $this->port->ifVlan) {
Convert Device>vlan view to Laravel (#12163) * Convert Device>vlan view to Laravel
2020-10-15 02:40:44 +02:00
$value = 1;
}
}
return $value;
}
Delete ports via eloquent event (#11354) * Delete ports via eloquent event Chunk delete during purge all operations so we don't use too much memory. * protect against missing device * fix whitespace * fetch less from the database when deleting a device's ports fix output
2020-04-16 09:19:58 -05:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Page: 3796ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API