You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
Hi everyone, I have started used this framework for few weeks and I got an issue that when I use Model::create(), it doesn't auto assign id to my model
For example:
$user = new User();
$user->name = "My name";
$user->create();
echo $user->id; // Result always is "0"
I tried it with raw Phalcon, and got correct id (auto increment) after create
I searched it on google and found this solution, set persistent => true in config/database.php