From 7789a089e4124521ac77918f25376a1b9d449f4a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 16 Mar 2011 11:26:55 +0800 Subject: [PATCH] Generator.php --- Generator.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Generator.php b/Generator.php index acc0444d..d071b43d 100644 --- a/Generator.php +++ b/Generator.php @@ -355,17 +355,22 @@ class Pman_Core_Generator extends DB_DataObject_Generator if (in_array($this->table, $ignore)) { continue; } - - - die("No existing DataObject file found for table {$this->table} + if (empty($mods)) { + + die("No existing DataObject file found for table {$this->table} + - either add it to Pman_Builder[skip_tables] or\n - create an empty file in the related Module/DataObjects directory eg. touch Pman/????/DataObjects/".ucfirst($this->table).".php - -"); - + + "); + } + // use mods to determine where it should output to.. + $this->modmap[$tn] = $mods; + + } $mod = $this->modmap[$tn]; $inis[$mod] = isset($inis[$mod]) ? $inis[$mod] : ''; -- 2.39.2