/** * Override parent's implementation * * @since 1.2 * @access public * @param string * @return */ public function store($pk = null) { $isNew = $this->id ? false : true; $state = parent::store($pk); if ($state) { $verb = $isNew ? 'create' : 'update'; $this->createStream($verb); } return $state; }
/** * Override parent's implementation * * @since 1.2 * @access public * @param string * @return */ public function store($pk = null) { $isNew = $this->id ? false : true; $state = parent::store($pk); // Only store "create" in stream if ($state && $isNew) { $this->createStream('create'); } return $state; }