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