public getFields ( ) : |
||
Результат | underscored fieldNames as index |
public function getFields()
{
return $this->fields;
}
/** * Important call directly after the creation of this class. * * @param string $objectKey * @param Object $definition */ public function configure($objectKey, $definition) { $this->objectKey = \Jarves\Objects::normalizeObjectKey($objectKey); $this->definition = $definition; foreach ($this->definition->getFields() as $field) { if ($field->isPrimaryKey()) { $this->primaryKeys[] = $field->getId(); } } }