Gc\Datatype\Collection::setDatatypes PHP Méthode

setDatatypes() protected méthode

Set datatype collection
protected setDatatypes ( ) : Collection
Résultat Collection
    protected function setDatatypes()
    {
        $rows = $this->fetchAll($this->select(function (Select $select) {
            $select->order('name');
        }));
        $datatypes = array();
        foreach ($rows as $row) {
            $datatypes[] = Model::fromArray((array) $row);
        }
        $this->datatypes = $datatypes;
        return $this;
    }