hi all, am new to symfony and have been using the jobbet tutorial to
try building a new app. i posted this message on the symfony forums
but got no reply so am trying out here. I am having problems parsing
the yaml file. it generates the model classes using doctrine:build-
model but gives me this error when i use doctrine-buil-sql
While exporting model class 'UrbanMusicAlbum' to SQL: Couldn't find
class Tracks
can anyone please give me atleast an idea of how to go about this.
thanks.
the yaml syntax is as follows
UrbanMusicArtist:
columns:
media_id: { type: integer }
album_id: { type: integer }
singles_id: { type: integer }
name: { type: varchar(255), notnull: true, unique: true }
gender:
type: enum
values: [male,female]
bio: { type: clob, notnull: true }
relations:
Media:
local: media_id
foreign: id
type: one
foreignType: many
onDelete: cascade
Album:
local: album_id
foreign: id
type: one
foreignType: many
onDelete: cascade
Singles:
local: singles_id
foreign: id
type: one
foreignType: many
onDelete: cascade
UrbanMusicSingles:
columns:
track_name: { type: varchar(255), notnull: true, unique: true }
genre: { type: varchar(255), notnull: true }
date_produced: { type: timestamp }
price: { type: decimal, scale: 2 }
mp3: { type: blob }
UrbanMusicMedia:
columns:
artist_picture: { type: blob }
singles_picture: { type: blob }
album_picture: { type: blob }
mp3: { type: blob }
UrbanMusicAlbum:
columns:
tracks_id: { type: integer }
genre: { type: varchar(255), notnull: true }
date_produced: { type: timestamp }
price: { type: decimal, scale: 2 }
mp3: { type: blob }
relations:
Tracks:
local: tracks_id
foreign: id
type: one
foreignType: many
onDelete: cascade
UrbanMusicTracks:
columns:
track_name: { type: varchar(255), notnull: true }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---