toArray() 공개 메소드

Return an array representation of the Collection.
public toArray ( mixed $keyColumn = null, mixed $valueColumn = null ) : array
$keyColumn mixed
$valueColumn mixed
리턴 array If $keyColumn and $valueColumn are not set, or are both null then this will return the array of entity objects
예제 #1
0
 /**
  * Set identity values from given collection
  *
  * @param \Spot\Entity\Collection
  */
 public function identityValuesFromCollection(Collection $collection)
 {
     $this->identityValue($collection->toArray($this->localKey()));
 }