Permalink
Browse files

fixed some typos :)

  • Loading branch information...
1 parent 0bfe0d5 commit 2f4b8183ed2dd5354525e008d39e5f405f452cfe @mpscholten committed Oct 9, 2013
View
2 src/Propel/Generator/Builder/Om/AbstractObjectBuilder.php
@@ -48,7 +48,7 @@ protected function getInterface()
* This is based on the build property propel.addGenericMutators, and also whether the
* table is read-only or an alias.
*/
- protected function isAddGenericMutators()
+ public function isAddGenericMutators()
{
$table = $this->getTable();
View
2 src/Propel/Generator/Builder/Om/templates/Object/_buildPkeyCriteria.php.twig
@@ -11,7 +11,7 @@
public function buildPkeyCriteria()
{
$criteria = new Criteria({{ builder.tableMapClassName }}::DATABASE_NAME);
- {% for column in table.primaryKey %}
+ {% for column in builder.table.primaryKey %}
$criteria->add({{ builder.columnConstant(column) }}, $this->{{ column.name|lower }});";
{% endfor %}
View
2 src/Propel/Generator/Builder/Om/templates/Object/_copy.php.twig
@@ -38,7 +38,7 @@ public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
{% if not column.autoIncrement %}
$copyObj->set{{ column.phpName }}($this->get{{ column.phpName }}());
{% endif %}
- {% endif %}
+ {% endfor %}
{% if builder.table.referrers|length > 0 %}
if ($deepCopy) {
View
5 src/Propel/Generator/Builder/Om/templates/Object/_primaryKey/_accessors.php.twig
@@ -1,4 +1,4 @@
-{% set primaryKeys = builder.table.primaryKeys %}
+{% set primaryKeys = builder.table.primaryKey %}
{% if primaryKeys|length == 1 %}
/**
@@ -56,6 +56,7 @@ public function isPrimaryKeyNull()
{% if not loop.last %}
&&
{% endif %}
- {% endif %}
+ {% endfor %}
;
+ {% endif %}
}
View
2 src/Propel/Generator/Builder/Om/templates/Object/_primaryKey/_mutators.php.twig
@@ -1,4 +1,4 @@
-{% set primaryKeys = builder.table.primaryKeys %}
+{% set primaryKeys = builder.table.primaryKey %}
{% if primaryKeys|length == 1 %}
/**

0 comments on commit 2f4b818

Please sign in to comment.