Skip to content
Permalink
Browse files

Clarified the docblocks

When reading these docblocks I found it confusing, because it's the Association class, I assumed that `getName()` would return the name of the association, such as `oneToMany` or similar. So I've just tried to clarify that the intended return is a Table class alias, as a string.
  • Loading branch information...
davidyell committed Aug 16, 2017
1 parent fb68e96 commit 1056f4dfd8c8fa46f23b30a8cf2cdea97133f0ef
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/ORM/Association.php
@@ -238,7 +238,8 @@ public function __construct($alias, array $options = [])
}
/**
* Sets the name for this association.
* Sets the name for this association, usually the alias
* assigned to the target associated table
*
* @param string $name Name to be assigned
* @return $this
@@ -258,7 +259,8 @@ public function setName($name)
}
/**
* Gets the name for this association.
* Gets the name for this association, usually the alias
* assigned to the target associated table
*
* @return string
*/

0 comments on commit 1056f4d

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.