Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added new code to classbody

  • Loading branch information...
commit 0bfe0d5085aa9eafd3b1e18676516d7ec0d94bff 1 parent bb853a4
@mpscholten authored
View
22 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 #}
Please sign in to comment.
Something went wrong with that request. Please try again.