How to generate code field ?
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
How to generate code field ?
A lot of aimeos entities have unique code field. In most cases the value based on label or name value. Is there some helper/service to generate the unique code ?
Re: How to generate code field ?
No, the code fields should be used to set IDs (or references) from external systems. If you don't have an external system as source of your data, use something unique for the codes (e.g. an unique name or a hash).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Expert
- Posts: 274
- Joined: 27 Jun 2019, 16:19
Re: How to generate code field ?
Very useful information for me ! Because exactly for this reason I added new fields to tables! As usual I am very thankful for you !