File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Datasource
26
26
27
27
- ``Datasource/Paging/PaginatedInterface `` now extends ``IteratorAggregate ``
28
28
instead of ``Traversable ``.
29
+ - ``EntityTrait::isEmpty() `` has been dropped in favor of ``hasValue() ``.
29
30
30
31
Http
31
32
----
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ You can check if fields are defined in your entities with ``has()``::
132
132
$article->has('undefined'); // false
133
133
134
134
The ``has() `` method will return ``true `` if a field is defined. You can use
135
- ``isEmpty() `` and `` hasValue() `` to check if a field contains a 'non-empty'
135
+ ``hasValue() `` to check if a field contains a 'non-empty'
136
136
value::
137
137
138
138
$article = new Article([
@@ -142,19 +142,15 @@ value::
142
142
'links' => [],
143
143
]);
144
144
$article->has('title'); // true
145
- $article->isEmpty('title'); // false
146
145
$article->hasValue('title'); // true
147
146
148
147
$article->has('user_id'); // true
149
- $article->isEmpty('user_id'); // true
150
148
$article->hasValue('user_id'); // false
151
149
152
150
$article->has('text'); // true
153
- $article->isEmpty('text'); // true
154
151
$article->hasValue('text'); // false
155
152
156
153
$article->has('links'); // true
157
- $article->isEmpty('links'); // true
158
154
$article->hasValue('links'); // false
159
155
160
156
If you often partially load entities you should enable strict-property access
You can’t perform that action at this time.
0 commit comments