projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DataObjects/Core_company.php
[Pman.Core]
/
DataObjects
/
Core_company.php
diff --git
a/DataObjects/Core_company.php
b/DataObjects/Core_company.php
index
34380bc
..
9c9e07e
100644
(file)
--- a/
DataObjects/Core_company.php
+++ b/
DataObjects/Core_company.php
@@
-40,7
+40,8
@@
class Pman_Core_DataObjects_Core_Company extends DB_DataObject
function applyFilters($q, $au)
{
function applyFilters($q, $au)
{
- $tn = $this->tableName();
+
+ $tn = $this->tableName();
$this->selectAdd("i18n_translate('c' , {$tn}.country, 'en') as country_display_name ");
$tn = $this->tableName();
$this->selectAdd("i18n_translate('c' , {$tn}.country, 'en') as country_display_name ");
$tn = $this->tableName();
@@
-282,6
+283,9
@@
class Pman_Core_DataObjects_Core_Company extends DB_DataObject
){
$roo->jerr('This company is not allow to delete');
}
){
$roo->jerr('This company is not allow to delete');
}
+ }
+ function onDelete()
+ {
$img = DB_DataObject::factory('Images');
$img->ontable = $this->tableName();
$img->onid = $this->id;
$img = DB_DataObject::factory('Images');
$img->ontable = $this->tableName();
$img->onid = $this->id;
@@
-446,7
+450,7
@@
class Pman_Core_DataObjects_Core_Company extends DB_DataObject
{
$affects = array();
{
$affects = array();
- $all_links = $
GLOBALS['_DB_DATAOBJECT']['LINKS'][$this->_database]
;
+ $all_links = $
x->databaseLinks()
;
foreach($all_links as $tbl => $links) {
foreach($links as $col => $totbl_col) {
foreach($all_links as $tbl => $links) {
foreach($links as $col => $totbl_col) {