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 all, If any can have idea and help on the error like Thank you
Comments
-
Did you run
docker/sdk console propel:install
to generate the DB table and the entity class?0 -
yes i did that
0 -
Can you post you schema.xml file?
0 -
<?xml version="1.0"?>
" name="zed" xsi:noNamespaceSchemaLocation="" namespace="Orm\Zed\Antelope\Persistence" package="src.Orm.Zed.Antelope.Persistence"><table name="pyz_antelope" idMethod="native" allowPkInsert="true" phpName="PyzAntelope"> <column name="id_antelope" required="true" type="INTEGER" primaryKey="true" autoIncrement="true"/> <column name="name" required="true" type="VARCHAR" size="255"/> <unique name="pyz_antelope-name"> <unique-column name="name"/> </unique> <id-method-parameter value="pyz_antelope_pk_seq"/> </table>
0 -
And the file is placed in
Zed/Antelope/Persistence/Propel/Schema/
and ends with.schema.xml
?0 -
path is src\Pyz\Shared\Training\Persistence\Propel\Schema\pyz_antelope.schema.xml
0 -
Shared never have DB schema definitions, only Zed has.
Please move the file tosrc\Pyz\Zed\Training\Persistence\Propel\Schema\pyz_antelope.schema.xml
and executedocker/sdk console propel:install
0 -
-
it is defined here src\Pyz\Zed\Training\Persistence\Antelope\add.twig
0 -
Where is your
add.twig
placed and where would you expect it?
All.twig
files are templates and belong to thePresentation
layer.
In your module or any other module from Spryker you will find for each layer a coresponding directory.
Presentation (display something in the backoffice):Zed/<Module>/Presentation/<ControllerName without Controller suffix>/<Action name without Action suffix>.twig
beside that there are Persistence (DB schemas and everything to write/read from the relational database), Communication (Controller, Plugins, Forms) and Business (the actual business code).https://docs.spryker.com/docs/scos/dev/architecture/modules-and-application-layers.html gives a good overview about the layers
0 -
Thank you @UL6DGRULR now its working...
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