1 | <?php |
||
10 | abstract class FlyCrudEntity extends AbstractEntity implements EntityInterface |
||
11 | { |
||
12 | /** |
||
13 | * Returns the fly-crud repository. |
||
14 | * |
||
15 | * @return \FlyCrud\Repository |
||
16 | */ |
||
17 | abstract protected function getRepository(); |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | public function search(SearchQuery $search) |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | public function create(array $data) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function read($id) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | public function update($id, array $data) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function delete($id) |
||
82 | |||
83 | /** |
||
84 | * Returns the id for the new documents |
||
85 | * Useful to customize the id before save. |
||
86 | * |
||
87 | * @param Document $document |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | protected function generateId(Document $document) |
||
95 | } |
||
96 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.