Permalink
Browse files

Fixed template not calling the right method

  • Loading branch information...
1 parent 24a5cba commit 4117aad5a2060a4d906928c1d009456d08c9c2f5 @mpscholten committed Oct 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Propel/Generator/Builder/Om/templates/Object/_constructor.php.twig
@@ -1,12 +1,12 @@
/**
* Initializes internal state of {{ builder.qualifiedClassName }} object.
-{% if builder.defaultValues %}
+{% if builder.hasDefaultValues %}
* @see applyDefaults()"
{% endif %}
*/
public function __construct()
{
- {% if builder.defaultValues %}
+ {% if builder.hasDefaultValues %}
$this->applyDefaultValues();
{% endif %}
}

0 comments on commit 4117aad

Please sign in to comment.