toArray() public method

Return an array representation of the Collection.
public toArray ( mixed $keyColumn = null, mixed $valueColumn = null ) : array
$keyColumn mixed
$valueColumn mixed
return array If $keyColumn and $valueColumn are not set, or are both null then this will return the array of entity objects
コード例 #1
0
ファイル: BelongsTo.php プロジェクト: GasimGasimzada/spot2
 /**
  * Set identity values from given collection
  *
  * @param \Spot\Entity\Collection
  */
 public function identityValuesFromCollection(Collection $collection)
 {
     $this->identityValue($collection->toArray($this->localKey()));
 }