| @@ -3,7 +3,6 @@ | ||
| 3 | 3 | namespace Folk\Entities; | 
| 4 | 4 | |
| 5 | 5 | use Folk\SearchQuery; | 
| 6 | -use SimpleCrud\Row; | |
| 7 | 6 | use FilesystemIterator; | 
| 8 | 7 | use RecursiveDirectoryIterator; | 
| 9 | 8 | |
| @@ -126,7 +126,7 @@ | ||
| 126 | 126 | * | 
| 127 | 127 | * @param array $data | 
| 128 | 128 | * | 
| 129 | - * @return string | |
| 129 | + * @return integer | |
| 130 | 130 | */ | 
| 131 | 131 | protected function getId(array $data) | 
| 132 | 132 |      { | 
| @@ -39,6 +39,9 @@ | ||
| 39 | 39 | return $dispatcher($request, new Response()); | 
| 40 | 40 | } | 
| 41 | 41 | |
| 42 | + /** | |
| 43 | + * @param string $name | |
| 44 | + */ | |
| 42 | 45 | public function getRoute($name, array $data = array(), array $query = null) | 
| 43 | 46 |      { | 
| 44 | 47 | return $this->getUrl($this['router']->getGenerator()->generate($name, $data)).($query ? '?'.http_build_query($query) : ''); |