public function getEntry($create = false) { if (!$this->_entry && $create) { $this->_entry = models\AuditEntry::create(true); } return $this->_entry; }
/** * @param bool $create * @return models\AuditEntry|static */ public function getEntry($create = false) { if (!$this->_entry && $create) { $this->_entry = models\AuditEntry::create(true); $this->callProviderQueue('record'); } return $this->_entry; }
/** * @param bool $create * @param bool $new * @return AuditEntry|static */ public function getEntry($create = false, $new = false) { if (!$this->_entry && $create || $new) { $this->_entry = AuditEntry::create(true); } return $this->_entry; }
/** * @param bool $create * @param bool $new * @return AuditEntry|static */ public function getEntry($create = false, $new = false) { $entry = new AuditEntry(); $tableSchema = $entry->getDb()->schema->getTableSchema($entry->tableName()); if ($tableSchema) { if (!$this->_entry && $create || $new) { $this->_entry = AuditEntry::create(true); } } return $this->_entry; }