Closed sadick254 closed 6 years ago
Hi there,
Managing your own primary keys like that does not work with RedBeanPHP. If you want custom ids you need to implement your own QueryWriter. Copy-pastable examples are available:
https://redbeanphp.com/index.php?p=/uuids
That page describes how to use MySQL/PostgreSQL UUIDs with RedBeanPHP. Hope this helps!
Cheers Gabor
Is it possible to set a value on the id instead of auto-increment done by the databases.
When I do it like above, there is nothing getting persisted on the db.