Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: Survos/Propel
...
head fork: Survos/Propel
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 3 contributors
Commits on Dec 18, 2013
@Gamesh 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
@staabm staabm Added hhvm to travis d3136b1
@willdurand 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
View
5 .travis.yml
@@ -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
View
8 runtime/lib/om/BaseObject.php
@@ -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.