Webiny\Component\Entity\AbstractEntity::toArray PHP 메소드

toArray() 공개 메소드

If no fields are specified, array will contain all simple and Many2One attributes
public toArray ( string $fields = '' ) : array
$fields string List of fields to extract
리턴 array
    public function toArray($fields = '')
    {
        $dataExtractor = new EntityDataExtractor($this);
        return $dataExtractor->extractData($fields);
    }