File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,11 @@ with Doctrine's Criteria API.
46
46
47
47
All above methods will include additional criteria specified by :ref: `Filters <filters >`.
48
48
49
+ .. note ::
50
+
51
+ Magic ``findBy `` and ``findOneBy `` calls described below are deprecated in 1.2 and
52
+ will be removed in 2.0.
53
+
49
54
Additional methods that are not defined explicitly in the repository class may also be
50
55
used if they follow a specific naming convention:
51
56
Original file line number Diff line number Diff line change @@ -206,9 +206,15 @@ public function findOneBy(array $criteria)
206
206
* or no find* method at all and therefore an invalid
207
207
* method call.
208
208
* @return array|object The found document/documents.
209
+ *
210
+ * @deprecated method was deprecated in 1.2 and will be removed in 2.0
209
211
*/
210
212
public function __call ($ method , $ arguments )
211
213
{
214
+ @trigger_error (
215
+ 'Using magic findBy and findOneBy calls was deprecated in version 1.2 and will be removed altogether in 2.0. ' ,
216
+ E_USER_DEPRECATED
217
+ );
212
218
if (strpos ($ method , 'findBy ' ) === 0 ) {
213
219
$ by = substr ($ method , 6 , strlen ($ method ));
214
220
$ method = 'findBy ' ;
You can’t perform that action at this time.
0 commit comments