浏览代码

Updated PHPDoc

mosaxiv 8 年之前
父节点
当前提交
c2d3a9656f
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/Datasource/RepositoryInterface.php
  2. 2 2
      src/ORM/Marshaller.php

+ 2 - 2
src/Datasource/RepositoryInterface.php

@@ -182,7 +182,7 @@ interface RepositoryInterface
      *
      *
      * @param array $data The data to build an entity with.
      * @param array $data The data to build an entity with.
      * @param array $options A list of options for the objects hydration.
      * @param array $options A list of options for the objects hydration.
-     * @return array An array of hydrated records.
+     * @return \Cake\Datasource\EntityInterface[] An array of hydrated records.
      */
      */
     public function newEntities(array $data, array $options = []);
     public function newEntities(array $data, array $options = []);
 
 
@@ -221,7 +221,7 @@ interface RepositoryInterface
      * data merged in
      * data merged in
      * @param array $data list of arrays to be merged into the entities
      * @param array $data list of arrays to be merged into the entities
      * @param array $options A list of options for the objects hydration.
      * @param array $options A list of options for the objects hydration.
-     * @return array
+     * @return \Cake\Datasource\EntityInterface[]
      */
      */
     public function patchEntities($entities, array $data, array $options = []);
     public function patchEntities($entities, array $data, array $options = []);
 }
 }

+ 2 - 2
src/ORM/Marshaller.php

@@ -338,7 +338,7 @@ class Marshaller
      *
      *
      * @param array $data The data to hydrate.
      * @param array $data The data to hydrate.
      * @param array $options List of options
      * @param array $options List of options
-     * @return array An array of hydrated records.
+     * @return \Cake\Datasource\EntityInterface[] An array of hydrated records.
      * @see \Cake\ORM\Table::newEntities()
      * @see \Cake\ORM\Table::newEntities()
      * @see \Cake\ORM\Entity::$_accessible
      * @see \Cake\ORM\Entity::$_accessible
      */
      */
@@ -361,7 +361,7 @@ class Marshaller
      * Builds the related entities and handles the special casing
      * Builds the related entities and handles the special casing
      * for junction table entities.
      * for junction table entities.
      *
      *
-     * @param \Cake\ORM\BelongsToMany $assoc The association to marshal.
+     * @param \Cake\ORM\Association\BelongsToMany $assoc The association to marshal.
      * @param array $data The data to convert into entities.
      * @param array $data The data to convert into entities.
      * @param array $options List of options.
      * @param array $options List of options.
      * @return array An array of built entities.
      * @return array An array of built entities.