Permalink
Browse files

Merge pull request #160 from m4tthumphrey/patch-1

Fixed typo on method name
  • Loading branch information...
2 parents 6b9ad4c + e615400 commit e4e1a37cc52f97beffbaa4704cfbfe3c276e43ef @willdurand willdurand committed Aug 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 reference/model-criteria.markdown
@@ -39,7 +39,7 @@ Propel uses the column name in conjunction with the schema to determine the colu
<?php
// $con is a PDO instance
$stmt = $con->prepare($query);
-$stmt->bind(':p1', time() - 30 * 24 * 60 * 60, PDO::PARAM_INT);
+$stmt->bindParam(':p1', time() - 30 * 24 * 60 * 60, PDO::PARAM_INT);
$res = $stmt->execute();
{% endhighlight %}

0 comments on commit e4e1a37

Please sign in to comment.