mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-15 08:14:02 +00:00
This PR adds Postgres RLS (trait manager + table manager approach) and permission controlled managers for PostgreSQL. --------- Co-authored-by: lukinovec <lukinovec@gmail.com> Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
18 lines
391 B
PHP
18 lines
391 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Database\Exceptions;
|
|
|
|
use Exception;
|
|
|
|
/**
|
|
* @see \Stancl\Tenancy\RLS\PolicyManagers\TraitRLSManager
|
|
*/
|
|
class TableNotRelatedToTenantException extends Exception
|
|
{
|
|
public function __construct(string $table)
|
|
{
|
|
parent::__construct("Table $table does not belong to a tenant directly or through another table.");
|
|
}
|
|
}
|