Primeros Pasos
Versión 1 (Guillermo Zdanowicz, 26/01/2012 11:25)
1 | 1 | Guillermo Zdanowicz | h1. Primeros Pasos |
---|---|---|---|
2 | 1 | Guillermo Zdanowicz | |
3 | 1 | Guillermo Zdanowicz | Para tener en cuenta con ejemplos |
4 | 1 | Guillermo Zdanowicz | |
5 | 1 | Guillermo Zdanowicz | src/Acme/GuardaBundle/Entity/Producto.php |
6 | 1 | Guillermo Zdanowicz | |
7 | 1 | Guillermo Zdanowicz | ese seria el lugar de las entidades o clases, las cuales se pueden generar automaticamente creando en un esquema en |
8 | 1 | Guillermo Zdanowicz | |
9 | 1 | Guillermo Zdanowicz | src/Acme/GuardaBundle/Resources/config/doctrine/Producto.orm.yml |
10 | 1 | Guillermo Zdanowicz | |
11 | 1 | Guillermo Zdanowicz | el cual contendria |
12 | 1 | Guillermo Zdanowicz | |
13 | 1 | Guillermo Zdanowicz | ucu\ucuBundle\Entity\Producto: |
14 | 1 | Guillermo Zdanowicz | type: entity |
15 | 1 | Guillermo Zdanowicz | table: producto |
16 | 1 | Guillermo Zdanowicz | id: |
17 | 1 | Guillermo Zdanowicz | id: |
18 | 1 | Guillermo Zdanowicz | type: integer |
19 | 1 | Guillermo Zdanowicz | generator: { strategy: AUTO } |
20 | 1 | Guillermo Zdanowicz | fields: |
21 | 1 | Guillermo Zdanowicz | nombre: |
22 | 1 | Guillermo Zdanowicz | type: string |
23 | 1 | Guillermo Zdanowicz | length: 100 |
24 | 1 | Guillermo Zdanowicz | precio: |
25 | 1 | Guillermo Zdanowicz | type: decimal |
26 | 1 | Guillermo Zdanowicz | scale: 2 |
27 | 1 | Guillermo Zdanowicz | descripcion: |
28 | 1 | Guillermo Zdanowicz | type: text |
29 | 1 | Guillermo Zdanowicz | |
30 | 1 | Guillermo Zdanowicz | php app/console doctrine:generate:entities "ucuBundle" |
31 | 1 | Guillermo Zdanowicz | |
32 | 1 | Guillermo Zdanowicz | y si ya tenemos una base de datos |
33 | 1 | Guillermo Zdanowicz | |
34 | 1 | Guillermo Zdanowicz | php app/console doctrine:mapping:import "ucuBundle" yml |