메소드 |
설명 |
|
__construct ( string $entityClass, array $data = [], array $parameters = [] ) |
|
|
__toString ( ) : mixed | null | string |
Get string of masked entity values when array of instances is being converted to string |
|
contains ( string | AbstractEntity $item ) : boolean |
Check if given item is already in the data set.
NOTE: this triggers loading of data from database if not yet loaded |
|
count ( ) : mixed |
Count items in entity collection |
|
delete ( ) : boolean |
Delete all items in the result set (WARNING: removes data from database) |
|
first ( ) : AbstractEntity | null |
Gets first entity in collection |
|
getData ( ) : array |
Get collection data |
|
getIterator ( ) |
|
|
getLimit ( ) |
|
|
getOffset ( ) |
|
|
last ( ) : AbstractEntity | null |
Gets last entity in collection |
|
offsetExists ( $offset ) |
|
|
offsetGet ( $offset ) |
|
|
offsetSet ( $offset, $value ) |
|
|
offsetUnset ( $offset ) |
|
|
randomize ( ) |
Shuffle values (useful when you want to fetch a random value) |
|
removeItem ( $item ) |
Remove item from data set |
|
toArray ( string $fields = '' ) : array |
Convert EntityCollection to array. |
|
totalCount ( ) : mixed |
Count total number of items in collection |
|