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
[2023-01-11T14:43:55+02:00][ERROR] Failed to save model 'Modules\Upload\Images\Image': array ( | |
0 => | |
Phalcon\Messages\Message::__set_state(array( | |
'code' => 0, | |
'field' => 'db_file_id', | |
'message' => 'Value of field "db_file_id" does not exist on referenced table', | |
'type' => 'ConstraintViolation', | |
'metaData' => | |
array ( | |
), |
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
[2023-01-11T14:43:50+02:00][DEBUG] NULL | |
[2023-01-11T14:43:50+02:00][DEBUG] SELECT CASE WHEN COUNT(*) > 0 THEN 1 ELSE 0 END FROM information_schema.tables WHERE table_schema = 'security' AND table_name='user' | |
[2023-01-11T14:43:50+02:00][DEBUG] SELECT DISTINCT c.column_name AS Field, c.data_type AS Type, c.character_maximum_length AS Size, c.numeric_precision AS NumericSize, c.numeric_scale AS NumericScale, c.is_nullable AS Null, CASE WHEN pkc.column_name NOTNULL THEN 'PRI' ELSE '' END AS Key, CASE WHEN c.data_type LIKE '%int%' AND c.column_default LIKE '%nextval%' THEN 'auto_increment' ELSE '' END AS Extra, c.ordinal_position AS Position, c.column_default, des.description FROM information_schema.columns c LEFT JOIN ( SELECT kcu.column_name, kcu.table_name, kcu.table_schema FROM information_schema.table_constraints tc INNER JOIN information_schema.key_column_usage kcu on (kcu.constraint_name = tc.constraint_name and kcu.table_name=tc.table_name and kcu.table_schema=tc.table_schema) WHERE tc.constraint_type='P |
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
<?php | |
namespace Modules\Upload\Files; | |
use Core\Framework\Injectable; | |
use Modules\Upload\Files\Exceptions\FileNotSavedException; | |
use Utils\Files\File; | |
class FilesService extends Injectable { | |
/** |
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
<?php | |
namespace Modules\Upload\Images; | |
use Core\Framework\Injectable; | |
use DateTime; | |
use Modules\Upload\Files\Exceptions\FileNotSavedException; | |
use Modules\Upload\Files\FilesService; | |
use Phalcon\Encryption\Security\Random; | |
use Phalcon\Image\Adapter\Imagick; |
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
<?php | |
namespace Core\Models; | |
use DateTime; | |
use Phalcon\Mvc\Model\Behavior\Timestampable; | |
use Utils\Time\Time; | |
abstract class TraceableModel extends BaseModel { | |
/** |
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
<?php | |
namespace Core\Models; | |
use Core\Services\Storage; | |
use Phalcon\Cache\Adapter\AdapterInterface as CacheAdapterInterface; | |
use Phalcon\Db\Adapter\AdapterInterface as DbAdapterInterface; | |
use Phalcon\Mvc\Model; | |
use ReflectionClass; | |
use ReflectionProperty; |
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
<?php | |
namespace Modules\Upload\Files; | |
use Core\Models\TraceableModel; | |
use Modules\Upload\Files\Exceptions\FileNotSavedException; | |
use Utils\Files\File; | |
use Utils\Serialize\HiddenFields; | |
class DbFile extends TraceableModel implements HiddenFields { |
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
<?php | |
namespace Modules\Upload\Images; | |
use Core\Models\BaseModel; | |
use Modules\Upload\Files\DbFile; | |
class Image extends BaseModel { | |
public const IMAGES_DIR_NAME = 'images'; |