Пример #1
0
 protected function addDoSelectJoin(&$script)
 {
     $tmp = '';
     parent::addDoSelectJoin($tmp);
     if (DataModelBuilder::getBuildProperty('builderAddBehaviors')) {
         $mixer_script = "\n\n    foreach (sfMixer::getCallables('{$this->getClassname()}:doSelectJoin:doSelectJoin') as \$callable)\n    {\n      call_user_func(\$callable, '{$this->getClassname()}', \$c, \$con);\n    }\n\n";
         $tmp = preg_replace('/public static function doSelectJoin.*\\(Criteria \\$c, \\$con = null\\)\\n\\s*{/', '\\0' . $mixer_script, $tmp);
     }
     $script .= $tmp;
 }