I am trying to fetch the insert id, before it's inserted
Let's say I have rows "ID, postid"
Then i would like to add postid to be the same value as the ID, but I encrypt the postid, so it's not really the same, but the value is...
I am trying something like this, but dosent work..
public function beforeValidationOnCreate()
  {
      $this->postid = encrypt($this->id);
  }Hope you have a solution!