1313namespace APY \DataGridBundle \Grid \Source ;
1414
1515use APY \DataGridBundle \Grid \Column \Column ;
16+ use APY \DataGridBundle \Grid \Exception \PropertyAccessDeniedException ;
1617use APY \DataGridBundle \Grid \Helper \ColumnsIterator ;
1718use APY \DataGridBundle \Grid \Mapping \Driver \DriverInterface ;
1819use APY \DataGridBundle \Grid \Row ;
1920use APY \DataGridBundle \Grid \Rows ;
20- use Symfony \Component \Form \Exception \PropertyAccessDeniedException ;
2121
2222abstract class Source implements DriverInterface
2323{
@@ -217,7 +217,7 @@ protected function getItemsFromData($columns)
217217 || is_callable ([$ itemEntity , $ fullFunctionName = 'is ' . $ functionName ])) {
218218 $ fieldValue = call_user_func ([$ itemEntity , $ fullFunctionName ]);
219219 } else {
220- throw new PropertyAccessDeniedExceptio (sprintf ('Property "%s" is not public or has no accessor. ' , $ fieldName ));
220+ throw new PropertyAccessDeniedException (sprintf ('Property "%s" is not public or has no accessor. ' , $ fieldName ));
221221 }
222222 } elseif (isset ($ item [$ fieldName ])) {
223223 $ fieldValue = $ item [$ fieldName ];
@@ -233,10 +233,10 @@ protected function getItemsFromData($columns)
233233 /**
234234 * Find data from array|object.
235235 *
236- * @param \APY\DataGridBundle\Grid\Column\ Column[] $columns
237- * @param int $page
238- * @param int $limit
239- * @param int $maxResults
236+ * @param Column[] $columns
237+ * @param int $page
238+ * @param int $limit
239+ * @param int $maxResults
240240 *
241241 * @return Rows
242242 */
@@ -471,7 +471,7 @@ public function executeFromData($columns, $page = 0, $limit = 0, $maxResults = n
471471
472472 public function populateSelectFiltersFromData ($ columns , $ loop = false )
473473 {
474- /* @var $column Column\Column */
474+ /* @var $column Column */
475475 foreach ($ columns as $ column ) {
476476 $ selectFrom = $ column ->getSelectFrom ();
477477
@@ -582,7 +582,7 @@ private function removeAccents($str)
582582 return preg_replace ('#&([A-za-z]{2})(?:lig);# ' , '\1 ' , $ noaccentStr );
583583 }
584584
585- protected function prepareColumnValues (Column \ Column $ column , $ values )
585+ protected function prepareColumnValues (Column $ column , $ values )
586586 {
587587 $ existingValues = $ column ->getValues ();
588588 if (!empty ($ existingValues )) {
0 commit comments