This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| neos [2019/02/11 10:45] – [Foundation Interchange] admin | neos [2019/02/14 12:18] (current) – [Use sqlite] admin | ||
|---|---|---|---|
| Line 75: | Line 75: | ||
| ./flow doctrine: | ./flow doctrine: | ||
| </ | </ | ||
| + | |||
| + | ===== Sample map properties ===== | ||
| + | |||
| + | <code php> | ||
| + | /** | ||
| + | * Convert array to Company Model | ||
| + | */ | ||
| + | $companies = []; | ||
| + | foreach ($csv-> | ||
| + | | ||
| + | | ||
| + | | ||
| + | } | ||
| + | |||
| + | /** | ||
| + | * Save all companies | ||
| + | */ | ||
| + | foreach ($companies as $company) { | ||
| + | $company = $this-> | ||
| + | $this-> | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||