Skip to content

Commit

Permalink
Correct method to fluent interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Scherer committed Oct 21, 2015
1 parent 2cba8e6 commit df1f742
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Datasource/EntityTrait.php
Expand Up @@ -582,7 +582,7 @@ public function extractOriginalChanged(array $properties)
* @param null|bool $isDirty true means the property was changed, false means
* it was not changed and null will make the function return current state
* for that property
* @return bool whether the property was changed or not
* @return bool Whether the property was changed or not
*/
public function dirty($property = null, $isDirty = null)
{
Expand Down Expand Up @@ -844,14 +844,16 @@ public function accessible($property, $set = null)
* this entity came from if it is known.
*
* @param string $alias the alias of the repository
* @return string
* @return string|$this
*/
public function source($alias = null)
{
if ($alias === null) {
return $this->_registryAlias;
}
$this->_registryAlias = $alias;

return $this;
}

/**
Expand Down

0 comments on commit df1f742

Please sign in to comment.