Jump to content
Sign in to follow this  
Stikki

Page property 'created' (at least) is not getting to object scope on save()

Recommended Posts

So, tell me am i stupid or isn't system just handling this?

What i'm doing:

// Save record locally
$record->save();
$record = $pages->get($record->id); // Reload record to refresh database columns, stupid i know!
 
--
 
But it seems that i have to reload page data to acquire some properties from database, even tho i would expect $pages->save() method to handle return values to $page object ($record in my case).
 
So system just ain't handling this, or am i missing something?
 
Thanks everyone!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...