Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nette 2.4 a 3.0 #5

Draft
wants to merge 47 commits into
base: master
Choose a base branch
from
Draft

Nette 2.4 a 3.0 #5

wants to merge 47 commits into from

Conversation

Jakub-Fajkus
Copy link

No description provided.

Jakub-Fajkus and others added 30 commits November 29, 2020 13:58
…a 3.0

neprochazi porad 2 stejne testy:

PHP 7.4.10 (cli) | php -n -c /var/www/html/tests/php.ini-unix | 8 threads

.....................F.............................F..........................................................................................................................................................

-- FAILED: Kdyby\Doctrine\DqlSelection. | DqlSelection.phpt method=testSetParameter
   Failed: Doctrine\ORM\Query\Parameter(#1cb0) should be equal to Doctrine\ORM\Query\Parameter(#2bfe) in testSetParameter()

   diff '/var/www/html/tests/KdybyTests/Doctrine/output/DqlSelection.[method=testSetParameter].expected' '/var/www/html/tests/KdybyTests/Doctrine/output/DqlSelection.[method=testSetParameter].actual'

   in KdybyTests/Doctrine/DqlSelection.phpt(469) Assert::equal($parameter, $qb->getParameter('id'));
   in src/Framework/TestCase.php(150) KdybyTests\Doctrine\DqlSelectionTest->testSetParameter()
   in src/Framework/TestCase.php(51) Tester\TestCase->runTest()
   in KdybyTests/Doctrine/DqlSelection.phpt(853) Tester\TestCase->run()

-- FAILED: Kdyby\Doctrine\Connection. | Connection.phpt method=testPing
   Exited with error code 255 (expected 0)
   Doctrine\DBAL\Exception\DriverException: An exception occurred in driver: could not find driver

   in DBAL/Driver/AbstractMySQLDriver.php(110)
   in Doctrine/DBAL/DBALException.php(172) Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException()
   in Doctrine/DBAL/DBALException.php(159) Doctrine\DBAL\DBALException::wrapException()
   in Driver/PDOMySql/Driver.php(28) Doctrine\DBAL\DBALException::driverException()
   in Doctrine/DBAL/Connection.php(362) Doctrine\DBAL\Driver\PDOMySql\Driver->connect()
   in Kdyby/Doctrine/Connection.php(287) Doctrine\DBAL\Connection->connect()
   in Doctrine/DBAL/Connection.php(1473) Kdyby\Doctrine\Connection->connect()
   in KdybyTests/Doctrine/Connection.phpt(52) Doctrine\DBAL\Connection->getWrappedConnection()
   in src/Framework/TestCase.php(150) KdybyTests\Doctrine\ConnectionTest->testPing()
   in src/Framework/TestCase.php(51) Tester\TestCase->runTest()
   in KdybyTests/Doctrine/Connection.phpt(137) Tester\TestCase->run()

   (previous) Doctrine\DBAL\Driver\PDOException: could not find driver

   in DBAL/Driver/PDOConnection.php(31)
   in Driver/PDOMySql/Driver.php(22) Doctrine\DBAL\Driver\PDOConnection->__construct()
   in Doctrine/DBAL/Connection.php(362) Doctrine\DBAL\Driver\PDOMySql\Driver->connect()
   in Kdyby/Doctrine/Connection.php(287) Doctrine\DBAL\Connection->connect()
   in Doctrine/DBAL/Connection.php(1473) Kdyby\Doctrine\Connection->connect()
   in KdybyTests/Doctrine/Connection.phpt(52) Doctrine\DBAL\Connection->getWrappedConnection()
   in src/Framework/TestCase.php(150) KdybyTests\Doctrine\ConnectionTest->testPing()
   in src/Framework/TestCase.php(51) Tester\TestCase->runTest()
   in KdybyTests/Doctrine/Connection.phpt(137) Tester\TestCase->run()

   (previous) PDOException: could not find driver

   in DBAL/Driver/PDOConnection.php(27)
   in DBAL/Driver/PDOConnection.php(27) PDO->__construct()
   in Driver/PDOMySql/Driver.php(22) Doctrine\DBAL\Driver\PDOConnection->__construct()
   in Doctrine/DBAL/Connection.php(362) Doctrine\DBAL\Driver\PDOMySql\Driver->connect()
   in Kdyby/Doctrine/Connection.php(287) Doctrine\DBAL\Connection->connect()
   in Doctrine/DBAL/Connection.php(1473) Kdyby\Doctrine\Connection->connect()
   in KdybyTests/Doctrine/Connection.phpt(52) Doctrine\DBAL\Connection->getWrappedConnection()
   in src/Framework/TestCase.php(150) KdybyTests\Doctrine\ConnectionTest->testPing()
   in src/Framework/TestCase.php(51) Tester\TestCase->runTest()
   in KdybyTests/Doctrine/Connection.phpt(137) Tester\TestCase->run()
napojeno na N24 extension v annotations
timto zacina uprava pro 3.0

pada ale spousta testu na chybe:
   E_USER_DEPRECATED: Nette\Utils\Callback::invokeArgs() is deprecated, use native invoking.
Chybelo rozbaleni pole a delalo to bordel
Jakub-Fajkus and others added 17 commits January 17, 2021 19:58
Version je deprecated a zde je uplne jedno, o jakou tridu jde, pokud je ze stejneho adresare, jako je trida version.
…t-object

#3107 Nahrazení Kdyby/StrictObject za Nette/SmartObject
   Kdyby\Doctrine\MissingClassException: Metadata of class entityName was not found, because the class is missing or cannot be autoloaded. in /var/www/html/vendor/kdyby/doctrine/src/Kdyby/Doctrine/Mapping/ClassMetadataFactory.php:70
Definition of the service was problematic and possibly not doable using nette3...

Its functionality can be replaced:
old:
- setDao( @doctrine.dao(Pd\WishlistModule\WishlistItem) )
new:
- setDao( @Kdyby\Doctrine\EntityManager::getDao(Pd\WishlistModule\WishlistItem) )
Fixes error `An option named "em" already exists`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants