php doctrine last identifier issue -
I'm going to be went down the problem trying the following escape:
$ Store = new store (); $ Store & gt; Url = $ this- & gt; Form_validation- & gt; Set_value ('website'); $ Store & gt; Save (); $ Store_id = $ store- & gt; Identifier (); Fatal error: Ignore the Message exception 'Doctrine_Connection_Exception' 'last entry could not be found identifier. In /home/yummm/public_html/system/application/plugins/doctrine/lib/Doctrine/Connection/UnitOfWork.php:932 Stack trace: # 0 / home / Yummm / Public_html / system / application / plugins / theory / lib / doctrine /knekshn/unitovrkkphp (632): Doktrin_knekshn_unitovrk- & gt; _assignIdentifier (Object (Sreni_stor_as)) /home/yummm/public_html/system/application/plugins/doctrine/lib/Doctrine/Connection/UnitOfWork.php(562 # 1): Doctrine_Connection_UnitOfWork- & gt; Prkriyasinginset (Object (Sreni_stor_san)) /home/yummm/public_html/system/application/plugins/doctrine/lib/Doctrine/Connection/UnitOfWork.php(81 # 2): Doctrine_Connection_UnitOfWork- & gt; Insert (Object (Category_store_assn)) /home/yummm/public_html/system/application/plugins/doctrine/lib/Doctrine/Record.php(1691 # 3): Doctrine_Connection_UnitOfWork- & gt; saveGraph (Object (Category_store_assn)) # 4 / Home / Yummm / Public_html /system/application/controllers/authkphp(375): In Doctrine_Reco / home / Yummm / Public_html / system / application / plugins / theory / lib / Docctrine / the Connection / UnitOfWork.php line 932
when do I echo $ store_id am, it seems that any catch the last ID without issue any idea coming this error , Even if the id keeps passing correctly?
It is possible that column went not set automatically defined as a self-check with the table definition : (Assuming MySQL) and make sure your ID field is not flagged as auto_increment If so, will strive to achieve the ultimate identifier for the Doctrine table, but failed because MySQL Only auto_manual column responses to the LAST_INSERT_ID () function of.
Describe tables_name;
Comments
Post a Comment