What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi! Where should be generated this class? ```Orm\Zed\Antelope\Persistence\PyzAntelopeQuery``` I went
Hi!
Where should be generated this class?
Orm\Zed\Antelope\Persistence\PyzAntelopeQuery
I went through all the steps in DataImport study but this class is not created
Comments
-
should be generated by propel:install
0 -
I ran proper:install but class is not created
0 -
then check namespace and package values in your *.schema.xml
0 -
What was the output of propel:install?
0 -
β°β$ console propel:install
Store: DE | Environment: docker.dev
Creating Database
Adjust propel config for PostgreSQL and missing functions (group_concat)
Clean schema directory
Copy and merge schema files
Build Propel2 classes
Generate diff for Propel2
262 tables found in all databases.
Comparing models...
Structure of database was modified in datasource βzedβ: 1 added tables
β/data/src/Orm/Propel/Migration_pgsql/PropelMigration_1621433348.phpβ file successfully created.
Please review the generated SQL statements, and add data migration code if necessary.
Once the migration class is valid, call the βmigrateβ task to execute it.
Migrate database
Executing migration PropelMigration_1621433348 up
4 of 4 SQL statements executed successfully on datasource βzedβ
Migration complete. No further migration to execute.0 -
And the content of the stated migration file?
0 -
(this is a topic for btw π)
0 -
Ok, sorry)
0 -
cat PropelMigration_1621433348.php
<?phpuse Propel\Generator\Manager\MigrationManager;
/**
* Data object containing the SQL and PHP code to migrate the database
* up to version 1621433348.
* Generated on 2021-05-19 14:09:08 by spryker
*/
class PropelMigration_1621433348
{
public $comment = ββ;public function preUp(MigrationManager $manager) { // add the pre-migration code here } public function postUp(MigrationManager $manager) { // add the post-migration code here } public function preDown(MigrationManager $manager) { // add the pre-migration code here } public function postDown(MigrationManager $manager) { // add the post-migration code here } /** * Get the SQL statements for the Up migration * * @return array list of the SQL strings to execute for the Up migration * the keys being the datasources */ public function getUpSQL() { return array (
βzedβ => '
BEGIN;CREATE SEQUENCE βpyz_antelope_pk_seqβ;
CREATE TABLE βpyz_antelopeβ
(
βid_antelopeβ INTEGER NOT NULL,
βnameβ VARCHAR(255) NOT NULL,
βcolorβ VARCHAR(255) NOT NULL,
PRIMARY KEY (βid_antelopeβ),
CONSTRAINT βpyz_antelope-nameβ UNIQUE (βnameβ)
);COMMIT;
β,
);
}/** * Get the SQL statements for the Down migration * * @return array list of the SQL strings to execute for the Down migration * the keys being the datasources */ public function getDownSQL() { return array (
βzedβ => '
BEGIN;DROP TABLE IF EXISTS βpyz_antelopeβ CASCADE;
DROP SEQUENCE βpyz_antelope_pk_seqβ;
COMMIT;
β,
);
}0 -
Then I think that the sync is not working. Windows and vagrant?
0 -
No, mac os and docker
0 -
Can you check for the file inside of the container?
0 -
Any container, e.g. zed
0 -
Don't have the exact name at hand
0 -
Check the Migration file?
0 -
ah no, the php file
0 -
All files in zed_eu container)
0 -
Which one i should check?
0 -
the one that you're missing
0 -
src/Orm\Zed\Antelope\Persistence\PyzAntelopeQuery.php
0 -
if it's in container but not visible in phpStorm then it's docker sync issue
0 -
Yes, itβs here
bash-5.0# pwd
/data/src/Orm/Zed/Antelope/Persistence
bash-5.0# ls -la
total 24
drwxr-xr-x 4 spryker www-data 4096 May 19 12:59 .
drwxr-xr-x 3 spryker www-data 4096 May 19 12:59 ..
drwxr-xr-x 2 spryker www-data 4096 May 19 12:59 Base
drwxr-xr-x 2 spryker www-data 4096 May 19 12:59 Map
-rw-r--r-- 1 spryker www-dataΒ 450 May 19 12:59 PyzAntelope.php
-rw-r--r-- 1 spryker www-dataΒ 488 May 19 12:59 PyzAntelopeQuery.php0 -
How can i fix it?
0 -
what's the output of
mutagen sync list
? Do you have one or more sync sessions?0 -
βcommand not found: mutagenβ - did i forget to install it?
0 -
seams like it
0 -
π¬ thanks!
0 -
-
if you ever have sync issues again check that
mutagen sync list
only lists one sync session..not more0 -
if it does list 2+: run
docker/sdk trouble
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random