Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jan 23, 2024
1 parent 289d367 commit 305b07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/GaletteAuto/Auto.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ public function store(bool $new = false): bool

if ($add->count() > 0) {
/** @phpstan-ignore-next-line */
$this->id = (int)$this->driver->getLastGeneratedValue(
$this->isPostgres() ?
$this->id = (int)$this->zdb->driver->getLastGeneratedValue(
$this->zdb->isPostgres() ?
PREFIX_DB . AUTO_PREFIX . 'cars_id_seq'
: null
);
Expand Down
5 changes: 0 additions & 5 deletions lib/GaletteAuto/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL License 3.0 or (at your option) any later version
* @link https://galette.eu
* @since Available since 0.7dev - 2009-03-16
*
* @property integer $id
* @property string $model
* @property int $brand
* @property Brand $obrand
*/
class Model
{
Expand Down

0 comments on commit 305b07b

Please sign in to comment.