[ciapug] Propel

Carl Olsen carl.olsen at DRAKE.EDU
Tue Jul 25 12:24:55 CDT 2006


Here are lines 45-50

    const NONE     = ""; // No "ON [ DELETE | UPDATE]" behaviour specified.
    const CASCADE  = "NO ACTION";
    const CASCADE  = "CASCADE";
    const RESTRICT = "RESTRICT";
    const SETNULL  = "SET DEFAULT";
    const SETNULL  = "SET NULL";

I don't see how line 47 or line 50 will ever run correctly.

--
Carl Olsen, MCSE
Web Developer, CMS Implementation
Marketing and Communications
Drake University
2507 University Avenue
115 Old Main
Des Moines, Iowa 50311-4505
Phone: 515-271-2986
Fax: 515-271-3798
Carl.Olsen at drake.edu
www.drake.edu


-----Original Message-----
From: ciapug-bounces at cialug.org [mailto:ciapug-bounces at cialug.org] On Behalf
Of Carl Olsen
Sent: Tuesday, July 25, 2006 12:10 PM
To: ciapug at cialug.org
Subject: RE: [ciapug] Propel

Actually, here are lines 46 and 47 from that file:

    const CASCADE  = "NO ACTION";
    const CASCADE  = "CASCADE";

That looks like an error to me.  How can a constant have more than one
value?

--
Carl Olsen, MCSE
Web Developer, CMS Implementation
Marketing and Communications
Drake University
2507 University Avenue
115 Old Main
Des Moines, Iowa 50311-4505
Phone: 515-271-2986
Fax: 515-271-3798
Carl.Olsen at drake.edu
www.drake.edu

-----Original Message-----
From: ciapug-bounces at cialug.org [mailto:ciapug-bounces at cialug.org] On Behalf
Of Carl Olsen
Sent: Tuesday, July 25, 2006 12:07 PM
To: ciapug at cialug.org
Subject: [ciapug] Propel

I added c:\php\includes\classes to the include_path in the php.ini file, and
now I'm getting this error when I try to build the bookstore example:

PHP Fatal error:  Cannot redefine class constant ForeignKey::CASCADE in
C:\php\apps\propel\generator\classes\propel\engine\database\model\ForeignKey
.php on line 47

It looks like it is almost working.  I have a feeling the configuration for
this bookstore example is using sqlite and I don't have it installed on my
machine, but I'm not sure that's what it is.

--
Carl Olsen, MCSE
Web Developer, CMS Implementation
Marketing and Communications
Drake University
2507 University Avenue
115 Old Main
Des Moines, Iowa 50311-4505
Phone: 515-271-2986
Fax: 515-271-3798
Carl.Olsen at drake.edu
www.drake.edu

_______________________________________________
ciapug mailing list
ciapug at cialug.org
http://cialug.org/mailman/listinfo/ciapug

_______________________________________________
ciapug mailing list
ciapug at cialug.org
http://cialug.org/mailman/listinfo/ciapug



More information about the ciapug mailing list