We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

entry_submission_ready and relationships

Development and Programming

Electric Putty's avatar
Electric Putty
88 posts
14 years ago
Electric Putty's avatar Electric Putty

Hello EE’ers,

We’ve hit a bit of a problem with our Add-on development and could really use some advice.

We are trying to capture the data submitted from the publish form and divert it before EE updates the database. We are using the entry_submission_ready hook as this looks like the earliest we can escape the process and leave with the data. entry_submission_start doesn’t seem to bring anything useful with it.

My problem is that before the entry_submission_ready hook is called, the submit_new_entry() method in Api_channel_entries runs a bunch of methods including one called _build_relationships.

Now, _build_relationships updates the exp_relationships table every time it is called, regardless whether the relationship in question has changed (Behaviour which is at odds with the comments but we’ve been logging transactions and this seems consistent).

The net result of this is that our entry_data array now contains a reference to a relationship that no longer exists.

How can I capture the submitted data and get away from the EE publishing process BEFORE the relationships table is updated?

Any advice of ideas would be very gratefully received.

Best wishes,

Malcolm

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.