for example: module People, the field ID, can i insert manually?
Hi Michele Grassi
Yes, it is possible to specify a default id. In order to do that you have to force the following attribute on saving the record inside a LogicHook before_save:
$bean->new_with_id = true;
it seems very difficult, i will try it
If you have any trouble getting this to work let us know. The example provided above would be for creating the record via code. Is this applicable for your use case? If not, how are you creating the record(s)? Any additional information will help us to point you in the right direction!
What is the original reason for that?
Do you just need a field for an external ID?
Or is it neccessary that you can address your records with certain ID based links?
Perhaps the solution is very simple.
Retrieving data ...