CodeExplorer generateProperty example
$entity . 'Collection.php' =>
$collection,
];
} private function generateEntity(EntityDefinition
$definition) { $properties =
[];
$uses =
[];
foreach ($definition->
getFields() as $field) { $property =
$this->
generateProperty($definition,
$field);
if (!
$property) { continue;
} foreach ($property['uses'
] as $use) { $uses[] =
$use;
} $properties[] =
$property;
} $functions =
array_column($properties, 'functions'
);
$properties =
array_column($properties, 'property'
);