@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * FormProcessor constructor. |
| 21 | 21 | * |
| 22 | 22 | * @param FormFactoryInterface $factory |
| 23 | - * @param string|FormTypeInterface $form |
|
| 23 | + * @param \Symfony\Component\Form\FormInterface $form |
|
| 24 | 24 | * @param array $options |
| 25 | 25 | */ |
| 26 | 26 | public function __construct(FormFactoryInterface $factory, $form, array $options = []) |
@@ -24,6 +24,9 @@ |
||
| 24 | 24 | $this->mapper = $mapper; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @param string $className |
|
| 29 | + */ |
|
| 27 | 30 | public function createFormForClass($className) |
| 28 | 31 | { |
| 29 | 32 | $form = $this->factory->create(); |
@@ -191,6 +191,9 @@ |
||
| 191 | 191 | return $this->container->getDefinition('cruds.api.router_loader'); |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | + /** |
|
| 195 | + * @param string $name |
|
| 196 | + */ |
|
| 194 | 197 | private function normalize($name) |
| 195 | 198 | { |
| 196 | 199 | return str_replace('-', '_', $name); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * @param int $limit |
| 41 | 41 | * @param int $offset |
| 42 | 42 | * |
| 43 | - * @return object[] |
|
| 43 | + * @return \Doctrine\Common\Collections\Collection |
|
| 44 | 44 | * @throws CriteriaConfigurationException |
| 45 | 45 | */ |
| 46 | 46 | public function findAction(array $criteria, array $order = [], $limit = 10, $offset = 0) |
@@ -115,6 +115,9 @@ discard block |
||
| 115 | 115 | return array_shift($identifier); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $attribute |
|
| 120 | + */ |
|
| 118 | 121 | private function getObjectMetadata($object, $attribute) |
| 119 | 122 | { |
| 120 | 123 | $class = get_class($object); |
@@ -132,6 +135,9 @@ discard block |
||
| 132 | 135 | return $metadata; |
| 133 | 136 | } |
| 134 | 137 | |
| 138 | + /** |
|
| 139 | + * @param string $attribute |
|
| 140 | + */ |
|
| 135 | 141 | private function getAssocMetadata(ClassMetadataInterface $metadata, $attribute) |
| 136 | 142 | { |
| 137 | 143 | $assoc = $metadata->getAssociationTargetClass($attribute); |