✏️ 正在编辑: ProtocoloPagamentoGerente.php
路径:
/srv/systems_dir/yuppiecred/application/models/DbTable/ProtocoloPagamentoGerente.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php class Model_DbTable_ProtocoloPagamentoGerente extends Core_DbTable { protected $_primary = 'id'; protected $_name = 'tb_protocolo_pagamento_gerente'; protected static $_viewName = 'vw_protocolo_pagamento_gerente'; protected $_dependentTables = array( 'Model_DbTable_ProtocoloPagamentoGerenteItem', ); protected $_referenceMap = array( 'Supervisor' => array( 'columns' => array( 'gerente_id' ), 'refTableClass' => 'Model_DbTable_Gerente', 'refColumns' => array( 'id' ) ) ); public static function getViewName() { return self::$_viewName; } public function excluirProtocolo($protocoloId) { //exclui os itens (relação protocolo x contrato) $item = new Model_DbTable_ProtocoloPagamentoGerenteItem(); $item->delete("protocolo_id = $protocoloId"); //exclui o protocolo return parent::delete("id = $protocoloId"); } }
💾 保存文件
← 返回文件管理器