Permalink
Browse files

registered new array accessor methods in template and removed some un…

…eccesary code
  • Loading branch information...
1 parent 2377c20 commit c4618b9fb33472507edc0fe73ed5bb3c9c51a269 @mpscholten committed Nov 9, 2013
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/Propel/Generator/Builder/Om/templates/Object/_columnMutatorMethods.php.twig
@@ -1,23 +1,23 @@
{% for column in builder.table.columns %}
{% if column.lobType %}
- {% include 'Object/_mutator/_lobMutator.php.twig' with {'builder': builder, 'column': column} %}
+ {% include 'Object/_mutator/_lobMutator.php.twig' %}
{% elseif column.temporalType %}
- {% include 'Object/_mutator/_temporalMutator.php.twig' with {'builder': builder, 'column': column} %}
+ {% include 'Object/_mutator/_temporalMutator.php.twig' %}
{% elseif column.phpObjectType %}
- {% include 'Object/_mutator/_objectMutator.php.twig' with {'builder': builder, 'column': column} %}
+ {% include 'Object/_mutator/_objectMutator.php.twig' %}
{% elseif column.phpArrayType %}
- {% include 'Object/_mutator/_arrayMutator.php.twig' with {'builder': builder, 'column': column} %}
+ {% include 'Object/_mutator/_arrayMutator.php.twig' %}
{% if column.namePlural %}
- {{ builder.addAddArrayElement(column) }}
- {{ builder.addRemoveArrayElement(column) }}
+ {% include 'Object/_mutator/_arrayAdd.php.twig' %}
+ {% include 'Object/_mutator/_arrayRemove.php.twig' %}
{% endif %}
{% elseif column.enumType %}
- {% include 'Object/_mutator/_enumMutator.php.twig' with {'builder': builder, 'column': column} %}
+ {% include 'Object/_mutator/_enumMutator.php.twig' %}
{% elseif column.booleanType %}
- {% include 'Object/_mutator/_booleanMutator.php.twig' with {'builder': builder, 'column': column} %}
+ {% include 'Object/_mutator/_booleanMutator.php.twig' %}
{% else %}
- {% include 'Object/_mutator/_defaultMutator.php.twig' with {'builder': builder, 'column': column} %}
+ {% include 'Object/_mutator/_defaultMutator.php.twig' %}
{% endif %}

0 comments on commit c4618b9

Please sign in to comment.