jobeet tutorial day 3 - issue using propel:build-model

Discussion around this tutorial for symfony 1.2-1.4

jobeet tutorial day 3 - issue using propel:build-model

Postby superpatty » Wed Dec 03, 2008 7:59 pm

When I got to the build-model step, the ORM only created two files for each database table. I have a Jobeet[tablename].php and Jobeet[tablename]Peer.php file for each table name. But the tutorial said that I should have four files for each table.

When I look in, for instance, JobeetAffiliate.php has the following:
"
<?php

class JobeetAffiliate extends BaseJobeetAffiliate
{
}

"

There isn't even a closing php tag.

Am I the only one that had this problem?
patrick

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius, and a lot of courage to move in the opposite direction.
~ Albert Einstein
superpatty
Member
 
Posts: 33
Joined: Wed Dec 03, 2008 6:49 pm
Location: Atlanta, GA

Re: jobeet tutorial day 3 - issue using propel:build-model

Postby SZoPer » Wed Dec 03, 2008 8:32 pm

Are you sure that there are only 2 classes? Have you checked the "map/" and "om/" subdirectories? These are the places where Base- and -MapBuilder classes are generated.
SZoPer
Junior Member
 
Posts: 1
Joined: Wed Dec 03, 2008 8:17 pm
Location: Wrocław, Poland

Re: jobeet tutorial day 3 - issue using propel:build-model [resolved]

Postby superpatty » Wed Dec 03, 2008 8:49 pm

You're right, I didn't look in the /om folder.

I feel dumb now :roll:
patrick

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius, and a lot of courage to move in the opposite direction.
~ Albert Einstein
superpatty
Member
 
Posts: 33
Joined: Wed Dec 03, 2008 6:49 pm
Location: Atlanta, GA

Re: jobeet tutorial day 3 - issue using propel:build-model

Postby halfer » Thu Dec 11, 2008 12:20 pm

superpatty wrote: There isn't even a closing php tag.

This is deliberate. If a closing tag is included, and whitespace is accidentally entered afterwards, when the file is included the whitespace gets sent to Apache, forcing all headers to the server and preventing any further headers from being set in your application. Having no closing tag effectively says "this is all PHP", and avoids this problem.
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: jobeet tutorial day 3 - issue using propel:build-model

Postby superpatty » Thu Dec 11, 2008 3:48 pm

Aahhhh, that makes a lot of sense then :)~ :-)~ :smile:
patrick

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius, and a lot of courage to move in the opposite direction.
~ Albert Einstein
superpatty
Member
 
Posts: 33
Joined: Wed Dec 03, 2008 6:49 pm
Location: Atlanta, GA


Return to jobeet

Who is online

Users browsing this forum: No registered users and 1 guest