mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Move entities to Phrasea namespace
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Entities\Feed;
|
||||
use Entities\FeedEntry;
|
||||
use Entities\FeedItem;
|
||||
use Entities\FeedPublisher;
|
||||
use Alchemy\Phrasea\Model\Entities\Feed;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedEntry;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedItem;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedPublisher;
|
||||
use Gedmo\Timestampable\TimestampableListener;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
|
||||
|
@@ -87,7 +87,7 @@ class patch_361 implements patchInterface
|
||||
}
|
||||
}
|
||||
|
||||
$dql = "SELECT b FROM Entities\Basket b WHERE b.description != ''";
|
||||
$dql = "SELECT b FROM Alchemy\Phrasea\Model\Entities\Basket b WHERE b.description != ''";
|
||||
|
||||
$n = 0;
|
||||
$perPage = 100;
|
||||
|
@@ -10,6 +10,8 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Alchemy\Phrasea\Model\Entities\LazaretFile;
|
||||
use Alchemy\Phrasea\Model\Entities\LazaretSession;
|
||||
use MediaAlchemyst\Exception\ExceptionInterface as MediaAlchemystException;
|
||||
use MediaAlchemyst\Specification\Image as ImageSpec;
|
||||
|
||||
@@ -60,7 +62,7 @@ class patch_370a7 implements patchInterface
|
||||
$conn = $appbox->get_connection();
|
||||
|
||||
try {
|
||||
//get all old lazaret file & transform them to \Entities\LazaretFile object
|
||||
//get all old lazaret file & transform them to LazaretFile object
|
||||
$sql = 'SELECT * FROM lazaret';
|
||||
$stmt = $conn->prepare($sql);
|
||||
$stmt->execute();
|
||||
@@ -76,10 +78,10 @@ class patch_370a7 implements patchInterface
|
||||
|
||||
//order matters for foreign keys constraints
|
||||
//truncate all altered tables
|
||||
$this->truncateTable($app['EM'], 'Entities\\LazaretAttribute');
|
||||
$this->truncateTable($app['EM'], 'Entities\\LazaretCheck');
|
||||
$this->truncateTable($app['EM'], 'Entities\\LazaretFile');
|
||||
$this->truncateTable($app['EM'], 'Entities\\LazaretSession');
|
||||
$this->truncateTable($app['EM'], 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute');
|
||||
$this->truncateTable($app['EM'], 'Alchemy\\Phrasea\\Model\\Entities\\LazaretCheck');
|
||||
$this->truncateTable($app['EM'], 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile');
|
||||
$this->truncateTable($app['EM'], 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession');
|
||||
|
||||
$i = 0;
|
||||
|
||||
@@ -108,10 +110,10 @@ class patch_370a7 implements patchInterface
|
||||
|
||||
$borderFile = new \Alchemy\Phrasea\Border\File($app, $media, $collection);
|
||||
|
||||
$lazaretSession = new \Entities\LazaretSession();
|
||||
$lazaretSession = new LazaretSession();
|
||||
$lazaretSession->setUsrId($row['usr_id']);
|
||||
|
||||
$lazaretFile = new \Entities\LazaretFile();
|
||||
$lazaretFile = new LazaretFile();
|
||||
$lazaretFile->setBaseId($row['base_id']);
|
||||
|
||||
if (null === $row['uuid']) {
|
||||
|
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Entities\AuthFailure;
|
||||
use Alchemy\Phrasea\Model\Entities\AuthFailure;
|
||||
|
||||
class patch_3805 implements patchInterface
|
||||
{
|
||||
|
@@ -10,8 +10,8 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Entities\Session;
|
||||
use Entities\SessionModule;
|
||||
use Alchemy\Phrasea\Model\Entities\Session;
|
||||
use Alchemy\Phrasea\Model\Entities\SessionModule;
|
||||
|
||||
class patch_3811 implements patchInterface
|
||||
{
|
||||
|
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Entities\FtpCredential;
|
||||
use Alchemy\Phrasea\Model\Entities\FtpCredential;
|
||||
|
||||
class patch_390 implements patchInterface
|
||||
{
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Entities\User;
|
||||
use Alchemy\Phrasea\Model\Entities\User;
|
||||
use Gedmo\Timestampable\TimestampableListener;
|
||||
|
||||
class patch_3902 implements patchInterface
|
||||
@@ -175,7 +175,7 @@ class patch_3902 implements patchInterface
|
||||
|
||||
$n = 0;
|
||||
|
||||
$repository = $em->getRepository('Entities\User');
|
||||
$repository = $em->getRepository('Alchemy\Phrasea\Model\Entities\User');
|
||||
|
||||
foreach ($rows as $row) {
|
||||
$user = $repository->findOneByLogin($row['usr_login']);
|
||||
|
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Entities\UserQuery;
|
||||
use Alchemy\Phrasea\Model\Entities\UserQuery;
|
||||
|
||||
class patch_3903 implements patchInterface
|
||||
{
|
||||
|
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Entities\UserSetting;
|
||||
use Alchemy\Phrasea\Model\Entities\UserSetting;
|
||||
|
||||
class patch_3904 implements patchInterface
|
||||
{
|
||||
|
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Entities\UserNotificationSetting;
|
||||
use Alchemy\Phrasea\Model\Entities\UserNotificationSetting;
|
||||
|
||||
class patch_3905 implements patchInterface
|
||||
{
|
||||
|
@@ -10,8 +10,8 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Entities\FtpExport;
|
||||
use Entities\FtpExportElement;
|
||||
use Alchemy\Phrasea\Model\Entities\FtpExport;
|
||||
use Alchemy\Phrasea\Model\Entities\FtpExportElement;
|
||||
use Gedmo\Timestampable\TimestampableListener;
|
||||
|
||||
class patch_3906 implements patchInterface
|
||||
|
@@ -10,12 +10,12 @@
|
||||
*/
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Entities\AggregateToken;
|
||||
use Entities\Feed;
|
||||
use Entities\FeedEntry;
|
||||
use Entities\FeedItem;
|
||||
use Entities\FeedPublisher;
|
||||
use Entities\FeedToken;
|
||||
use Alchemy\Phrasea\Model\Entities\AggregateToken;
|
||||
use Alchemy\Phrasea\Model\Entities\Feed;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedEntry;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedItem;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedPublisher;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedToken;
|
||||
|
||||
class patch_3907 implements patchInterface
|
||||
{
|
||||
|
Reference in New Issue
Block a user