Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function onBeforeWrite()
- {
- parent::onBeforeWrite();
- if ($this->Profile()->exists()) {
- $profile = new Profile();
- $profile->User = $this;
- $profile->write();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement