Skip to content
Permalink
Browse files

Fix doc block errors.

  • Loading branch information...
markstory committed Feb 3, 2014
1 parent 6beded1 commit 4af26371435d7be5ec0f0cdbbf92c1cdcdc1c3f4
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/View/Form/EntityContext.php
@@ -30,7 +30,7 @@
*
* - `entity` The entity this context is operating on.
* - `table` Either the ORM\Table instance to fetch schema/validators
* from, an array of table instances in the case of an form spanning
* from, an array of table instances in the case of a form spanning
* multiple entities, or the name(s) of the table.
* If this is null the table name(s) will be determined using conventions.
* - `validator` Either the Validation\Validator to use, or the name of the
@@ -163,7 +163,7 @@ protected function _getEntity($path) {
*
* @param mixed $target The entity/array/collection to fetch $field from.
* @param string $field The next field to fetch.
* @return mixed.
* @return mixed
*/
protected function _getProp($target, $field) {
if (is_array($target) || $target instanceof Traversable) {
@@ -277,7 +277,7 @@ public function attributes($field) {
$parts = explode('.', $field);
list($entity, $prop) = $this->_getEntity($parts);
if (!$entity) {
return null;
return [];
}
$table = $this->_getTable($prop);
$column = $table->schema()->column(array_pop($parts));

0 comments on commit 4af2637

Please sign in to comment.
You can’t perform that action at this time.