forked from phalcon/incubator-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mentions in PR and refactor namespace
- Loading branch information
Showing
79 changed files
with
235 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Phalcon\Incubator\Mvc\Collection\Behavior; | ||
namespace Phalcon\Incubator\MongoDB\Mvc\Collection\Behavior; | ||
|
||
use Phalcon\Incubator\Mvc\Collection\Behavior; | ||
use Phalcon\Incubator\Mvc\Collection\Exception; | ||
use Phalcon\Incubator\Mvc\CollectionInterface; | ||
use Phalcon\Incubator\MongoDB\Mvc\Collection\Behavior; | ||
use Phalcon\Incubator\MongoDB\Mvc\Collection\Exception; | ||
use Phalcon\Incubator\MongoDB\Mvc\CollectionInterface; | ||
use Phalcon\Mvc\EntityInterface; | ||
|
||
/** | ||
* Phalcon\Incubator\Mvc\Collection\Behavior\SoftDelete | ||
* Phalcon\Incubator\MongoDB\Mvc\Collection\Behavior\SoftDelete | ||
* | ||
* Instead of permanently delete a record it marks the record as | ||
* deleted changing the value of a flag column | ||
* | ||
* @package Phalcon\Incubator\Mvc\Collection\Behavior | ||
* @package Phalcon\Incubator\MongoDB\Mvc\Collection\Behavior | ||
*/ | ||
class SoftDelete extends Behavior | ||
{ | ||
|
@@ -51,6 +60,8 @@ public function notify(string $type, CollectionInterface $collection) | |
|
||
/** | ||
* Skip the current operation | ||
* | ||
* @noinspection PhpPossiblePolymorphicInvocationInspection | ||
*/ | ||
$collection->skipOperation(true); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.