Example #1
0
 public function save()
 {
     if (!$this->getMailKey()) {
         $this->setMailKey(Filesystem::readRandomCharacters(20));
     }
     return parent::save();
 }
Example #2
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('previousTransactionPHID' => 'phid?', 'corpus' => 'fulltext'), self::CONFIG_KEY_SCHEMA => array('key_thread' => array('columns' => array('threadPHID')), 'key_transaction' => array('columns' => array('transactionPHID'), 'unique' => true), 'key_previous' => array('columns' => array('previousTransactionPHID'), 'unique' => true), 'key_corpus' => array('columns' => array('corpus'), 'type' => 'FULLTEXT'))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_SERIALIZATION => array('settings' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('participationStatus' => 'uint32', 'dateTouched' => 'epoch', 'seenMessageCount' => 'uint64'), self::CONFIG_KEY_SCHEMA => array('conpherencePHID' => array('columns' => array('conpherencePHID', 'participantPHID'), 'unique' => true), 'unreadCount' => array('columns' => array('participantPHID', 'participationStatus')), 'participationIndex' => array('columns' => array('participantPHID', 'dateTouched', 'id')))) + parent::getConfiguration();
 }
 public function getConfiguration()
 {
     return array(self::CONFIG_SERIALIZATION => array('settings' => self::SERIALIZATION_JSON)) + parent::getConfiguration();
 }