Skip to content

Commit

Permalink
Coding standard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 10, 2013
1 parent 0533d14 commit 655704b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/ORM/Association/BelongsTo.php
Expand Up @@ -45,7 +45,7 @@ class BelongsTo extends Association {
public function foreignKey($key = null) {
if ($key === null) {
if ($this->_foreignKey === null) {
$this->_foreignKey = Inflector::underscore($this->target()->alias()) . '_id';
$this->_foreignKey = Inflector::underscore($this->target()->alias()) . '_id';
}
return $this->_foreignKey;
}
Expand Down

0 comments on commit 655704b

Please sign in to comment.