Permalink
Browse files

added new code to classbody

  • Loading branch information...
1 parent bb853a4 commit 0bfe0d5085aa9eafd3b1e18676516d7ec0d94bff @mpscholten committed Oct 9, 2013
Showing with 22 additions and 0 deletions.
  1. +22 −0 src/Propel/Generator/Builder/Om/templates/Object/_classBody.php.twig
@@ -49,6 +49,28 @@
{% include 'Object/_genericAccessors/_getByPosition.php.twig' with {'builder': builder} %}
{% include 'Object/_genericAccessors/_toArray.php.twig' with {'builder': builder} %}
{% endif %}
+
+ {% if builder.addGenericMutators %}
+ {% include 'Object/_genericMutators/_setByName.php.twig' with {'builder': builder} %}
+ {% include 'Object/_genericMutators/_setByPosition.php.twig' with {'builder': builder} %}
+ {% include 'Object/_genericMutators/_fromArray.php.twig' with {'builder': builder} %}
+ {% endif %}
+
+ {% include 'Object/_ensureConsistency.php.twig' with {'builder': builder} %}
+ {% include 'Object/_buildCriteria.php.twig' with {'builder': builder} %}
+ {% include 'Object/_buildPkeyCriteria.php.twig' with {'builder': builder} %}
+
+ {% include 'Object/_primaryKey/_accessors.php.twig' with {'builder': builder} %}
+ {% include 'Object/_primaryKey/_mutators.php.twig' with {'builder': builder} %}
+
+ {% include 'Object/_copy.php.twig' with {'builder': builder} %}
+
+ {% if builder.generatorConfig.buildProperty('addHooks') %}
+ {% include 'Object/_hookMethods.php.twig' with {'builder': builder} %}
+ {% endif %}
+
+ {% include 'Object/_magicCall.php.twig' with {'builder': builder} %}
+ {% include 'Object/_magicToString.php.twig' with {'builder': builder} %}
{% endfilter %}
{# TODO: more code here #}

0 comments on commit 0bfe0d5

Please sign in to comment.