473,799 Members | 2,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Propel. DOA. Why?

Hi,

I'd like to be convinced otherwise but I have been reading about Propel
and similar packages and these packages seem like a waste of time.
Quotes from the Propel site.

"Propel makes applications easier to write"

To use Propel there is a bunch of overhead to prepare by making an XML
document describing the database. That seems like a real pain during
development especially if the database is changing along the way.

- - - -

"Propel enables you to perform complex queries and database
manipulations without writing a single SQL clause."....."T he Criteria
class is able to build commonly used queries, but it does not pretend
to be capable of building any query. In cases where you need to perform
particularly complex queries you will need to write your own SQL
statements. "

First, why avoid SQL? I think it is the simplest part of a web app to
read. Even a complicated query is still a small self-contained
statement. Second, even if I want to use Propel to avoid SQL and if I
have a complicated SQL query then I'll still have to write SQL.

- - - -

///PROPEL CODE

$cton1 = $c->getNewCriterio n(AuthorPeer::F IRST_NAME, "Leo",
Criteria::NOT_E QUAL);
$cton2 = $c->getNewCriterio n(AuthorPeer::L AST_NAME,
array("Tolstoy" , "Dostoevsky ", "Bakhtin"),
Criteria::IN);
$cton1->addOr($cton2 );
$c->add($cton1);

$results = AuthorPeer::doS elect($c);
foreach($result s as $author) {
print "Author: " . $author->getLastName( ) . ", " .
$author->getFirstName () . "\n";
}

///SQL with PEAR DB

$result = $db->getAll("SELE CT * FROM author WHERE first_name!='Le o' OR
last_name IN ('Tolstoy', 'Dostoevsky', 'Bakhtin')");

foreach($result s as $author) {
print "Author: " . $author['last_name'] . ", " .
$author['first_name'] . "\n";
}

///To me the plain SQL with PEAR DB version is much easier to read.

- - - - - -

So what am I missing? People are spending a lot of time developing
Propel. I don't get it.

-Peter

Oct 14 '05 #1
0 1033

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
14986
by: Artco News | last post by:
Is there a way to set php.ini to the alternate location? I'm trying to use 2 version of PHP(php4 and php5), but php.ini is in the way. Anyone knows how to circumvent this issues? Perhaps there is an env variable we can set. Thanks
0
1611
by: theshz | last post by:
I'm just starting to write a php web application, coming from the java world. I'd like to find some framework that makes most of the usual problems easier (session, error, i18n, templating, etc.), there seems to be too many of these, I tried to use BinaryCloud, but am having some problems. I do like the Propel OR framework (I use hibernate in java). I've heard php.mvc, etc.. Are there any reputable reviews/comparisons of these frameworks?...
125
7237
by: Raymond Hettinger | last post by:
I would like to get everyone's thoughts on two new dictionary methods: def count(self, value, qty=1): try: self += qty except KeyError: self = qty def appendlist(self, key, *values): try:
27
2843
by: James | last post by:
http://www.gotdotnet.com/workspaces/workspace.aspx?id=ad7acff7-ab1e-4bcb-99c0-57ac5a3a9742
1
84134
by: Propel Exacto | last post by:
Hey guys, I am using MySQL 4.0.18 and I have a field named "order_datetime" in which I store data in the format 20041001 23:00:00 (for example Oct 1, 2004 11pm) When I do a select statement to find dates in a given range, the result set never includes records that have the ending date. For example, if my SQL statement is
1
1681
by: rickycornell | last post by:
Greetings All, On past projects in PHP4 I had always just written my own libraries to deal with database interaction. Somehow I was operating in the dark that there were all these database abstraction things available that made my work on the libraries I made from scratch a waste of time. So now I've started researching all these things that are available, and I have to say I am a little confused. It's a matter of understanding the...
5
1552
by: laredotornado | last post by:
Hi, I'm using PHP 5.2. I am looking for some library or framework that can map/generate PHP objects to MySQL database tables. I found Propel, though a Google search, but it requires me to turn off magic quotes in my php.ini file and too many of my applications depend on that setting. Anyway, your experiences and recommendations are greatly appreciated, - Dave
0
10491
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10247
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10031
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9079
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7571
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.