Skip to content

Commit

Permalink
Fix: some files were not saved before previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Mtangoo committed Oct 10, 2024
1 parent 99c9a07 commit 0f80cba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Behaviors/GeometryBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ public function afterSave()
*/
public function afterFind()
{
if (empty($this->owner->{$this->attribute})) {
return parent::afterFind();
}

if (!is_object(json_decode($this->owner->{$this->attribute}))) {

Expand Down
2 changes: 1 addition & 1 deletion Behaviors/StBufferBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use yii\base\Behavior;
use yii\db\ActiveRecord;
use Yii2\Extension\Postgis\components\StBuffer;
use Yii2\Extension\Postgis\Components\StBuffer;

/**
* Class StBufferBehavior
Expand Down
4 changes: 2 additions & 2 deletions Db/PostgisQueryTrait.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Yii2\Extension\Postgis\db;
namespace Yii2\Extension\Postgis\Db;

use Yii2\Extension\Postgis\Behaviors\GeometryBehavior;
use yii\helpers\ArrayHelper;
Expand All @@ -12,7 +12,7 @@
* @property-read string tableName table name of AR model
* @property-read yii\db\ColumnSchema[] tableColumns table columns of AR model
* @property-read array tableColumnsNames table columns names of AR model
* @package Yii2\Extension\Postgis\db
* @package Yii2\Extension\Postgis\Db
* @author Chernyavsky Denis <[email protected]>
*/
trait PostgisQueryTrait
Expand Down

0 comments on commit 0f80cba

Please sign in to comment.