Jump to content

LouAdrien

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

LouAdrien's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hey guys, your solution worked indeed if I copy it directly into the final override file, but If i put it in my original module override file, these lines don't get copied to the final override file, any idea why??
  2. I am having exactly the same issue, did you find a solution?
  3. Hello all, This question is somewhat related to this topic. The problem happening is that on my own installation (1.6.11 - Mac OS 10.10.3), the add() method of the objectmodel will create thew new entity, but will always return 0 as the entity ID. That is quite a big issue as I read the object model core code, and it seems to rely heavily on the assumption that this will be set properly. Also it seems that it fails as the step doing : $object_id = Db::getInstance()->Insert_ID(); Apparently this insert_id implementation on my system does not work. Anyone have seen this bug / found a way to solve it? Thx
  4. Thanks for this answer, but i was looking for something that would not require another request I don't understand why it doesn't work as it seems to be a big asumption of the objectmodel code. As a remark, if done with too request, i would rather get the biggest existing ID, increment it manually and force it in the insert, to avoid any issue with concurrent operations happening ( you might get an exception, but at least you see it )
  5. Actualy, after checking, the add method rely on Db::getInstance()->Insert_ID(); to fill the new object id, which in my case, doesn't work. Any suggestion?
  6. Hello, I was wondering the same, how to retrieve the created id after using the add method of objectmodel? for sure after add, it is undefined in the object. Using Db::getInstance()->Insert_ID(); seems un-reliable in case of multi-database usage or even concurrent database operations no?
  7. Hello! I would be interested in finding a clean solution to handle that problem too, did you find one? The ultimate goal is to be able to override a theme's templates on the side, so that it is still possibly to update this 3rd party theme if there is an update. Thanks!
  8. If you are trying to debug class override, these overrides get copied to the folder /overrides/class/yourclass. The file that you provide in the module itself is actualy never used, so you have to set breakpoints on the copied ones. Hope that helps.
×
×
  • Create New...