Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: Survos/Propel
base: 93f9fc84d1
...
head fork: Survos/Propel
compare: 1eda8f318e
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 3 contributors
Commits on Dec 18, 2013
Justinas Gamesh setters should provide fluent interface
setNew, setDeleted and resetModified should return $this as all the other setters to provide fluent interface.
13505a8
Commits on Dec 31, 2013
Markus Staab staabm Added hhvm to travis d3136b1
William Durand willdurand Merge pull request #804 from Gamesh/patch-1
setters should provide fluent interface
1eda8f3
Showing with 11 additions and 2 deletions.
  1. +5 −0 .travis.yml
  2. +6 −2 runtime/lib/om/BaseObject.php
5 .travis.yml
View
@@ -10,6 +10,7 @@ php:
- 5.3
- 5.4
- 5.5
+ - hhvm
env:
- DB=mysql DB_USER=root
@@ -26,3 +27,7 @@ before_script:
- ./test/reset_tests.sh
script: phpunit
+
+matrix:
+ allow_failures:
+ - php: hhvm
8 runtime/lib/om/BaseObject.php
View
@@ -116,10 +116,12 @@ public function isNew()
* by Propel-generated children and Peers.
*
* @param boolean $b the state of the object.
+ * @return self
*/
public function setNew($b)
{
$this->_new = (boolean) $b;
+ return $this;
}
/**
@@ -137,11 +139,12 @@ public function isDeleted()
*
* @param boolean $b The deleted state of this object.
*
- * @return void
+ * @return self
*/
public function setDeleted($b)
{
$this->_deleted = (boolean) $b;
+ return $this;
}
/**
@@ -242,7 +245,7 @@ public function postHydrate($row, $startcol = 0, $rehydrate = false)
*
* @param string $col If supplied, only the specified column is reset.
*
- * @return void
+ * @return self
*/
public function resetModified($col = null)
{
@@ -253,6 +256,7 @@ public function resetModified($col = null)
} else {
$this->modifiedColumns = array();
}
+ return $this;
}
/**

No commit comments for this range

Something went wrong with that request. Please try again.