Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Model_CRUD クラスを使用しています。これは、データベースに保存して検索するメソッドです。新しいオブジェクトをDBに保存するときに問題が発生します.最後に挿入されたIDを取得する方法は?
User::forge($userInfo)->save(); // Save returns only bool value
最後に挿入された ID を取得するには、さらに 1 つのクエリが必要ですか?