How to generate code field ?

Help for integrating the Laravel package
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!
MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

How to generate code field ?

Post by MikaelNazarenko » 06 Sep 2019, 12:51

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 ?

User avatar
aimeos
Administrator
Posts: 7885
Joined: 01 Jan 1970, 00:00

Re: How to generate code field ?

Post by aimeos » 08 Sep 2019, 08:34

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, Image give us a star

MikaelNazarenko
Expert
Posts: 274
Joined: 27 Jun 2019, 16:19

Re: How to generate code field ?

Post by MikaelNazarenko » 09 Sep 2019, 06:48

Very useful information for me ! Because exactly for this reason I added new fields to tables! As usual I am very thankful for you !

Post Reply