Capsule
2 years ago
Concerns
2 years ago
Connectors
2 years ago
Console
2 years ago
DBAL
2 years ago
Eloquent
2 years ago
Events
2 years ago
Migrations
2 years ago
PDO
2 years ago
Query
2 years ago
Schema
2 years ago
ClassMorphViolationException.php
2 years ago
ConfigurationUrlParser.php
2 years ago
Connection.php
2 years ago
ConnectionInterface.php
2 years ago
ConnectionResolver.php
2 years ago
ConnectionResolverInterface.php
2 years ago
DatabaseManager.php
2 years ago
DatabaseServiceProvider.php
2 years ago
DatabaseTransactionRecord.php
2 years ago
DatabaseTransactionsManager.php
2 years ago
DetectsConcurrencyErrors.php
2 years ago
DetectsLostConnections.php
2 years ago
Grammar.php
2 years ago
LazyLoadingViolationException.php
2 years ago
MigrationServiceProvider.php
2 years ago
MultipleRecordsFoundException.php
2 years ago
MySqlConnection.php
2 years ago
PostgresConnection.php
2 years ago
QueryException.php
2 years ago
RecordsNotFoundException.php
2 years ago
SQLiteConnection.php
2 years ago
Seeder.php
2 years ago
SqlServerConnection.php
2 years ago
ClassMorphViolationException.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\Illuminate\Database; |
| 4 | |
| 5 | use RuntimeException; |
| 6 | /** @internal */ |
| 7 | class ClassMorphViolationException extends RuntimeException |
| 8 | { |
| 9 | /** |
| 10 | * The name of the affected Eloquent model. |
| 11 | * |
| 12 | * @var string |
| 13 | */ |
| 14 | public $model; |
| 15 | /** |
| 16 | * Create a new exception instance. |
| 17 | * |
| 18 | * @param object $model |
| 19 | */ |
| 20 | public function __construct($model) |
| 21 | { |
| 22 | $class = \get_class($model); |
| 23 | parent::__construct("No morph map defined for model [{$class}]."); |
| 24 | $this->model = $class; |
| 25 | } |
| 26 | } |
| 27 |