"Item is missing relationship to app" when calling item->save()

Answered

Comments

2 comments

  • Andreas Haugstrup Pedersen

    Are you 100% sure $OrganizationsAppID is an integer? If it's a string your code will fail.

    The error is because the PodioApp instance is not being created (so the item doesn't know to which app it belongs). You can inspect $item->app to see what you really have store in there.

    /Andreas

    0
    Comment actions Permalink
  • Patrick Steil

    That was it... sorry... I just added an intval() around it and it worked... :)

    Thanks!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk