Questions tagged [propel]

Propel is an open-source object-relational mapping (ORM) for PHP 5. It allows you to access your database using a set of objects, providing a simple API for storing and retrieving data. There are two major versions, 1 and 2.

Propel is an open-source object-relational mapping (ORM) for PHP 5.

It allows you to access the records in your database using a set of OOP objects, providing a simple API for basic CRUD operations. To accomplish this, Propel ORM includes a generator component which uses source code generation to build PHP classes based on a data model definition written in XML (or reverse-engineered from an existing database).

Propel also includes a runtime component which manages connections, transactions, and any idiosyncratic rules that describe the workings of the RDBMS being used with Propel.

In addition to being open source, the code as implemented in a project is extendable with behaviors which alter the generated class structure and by working with the one-time generated model classes themselves which extend the base Active Record classes.

It is also an integral part of the PHP framework Symfony and was the default ORM up to and including version 1.2.


Documentation:

1161 questions
0
votes
2 answers

Propel version with symfony 1.4.11

I went through few post but didn't find an answer to probably one of most simple questions. What is the standard Propel version that comes bundled with symfony 1.4.11? In one answer, I found a recommendation to use the awk command but unfortunately…
Kapil Sharma
  • 10,135
  • 8
  • 37
  • 66
0
votes
1 answer

Symfony2: SecurityExtension::addUserProviderFactory() and PropelBundle

I am currently migrating a Symfony2 website and I got an issue I am not able to fix. The error message I got is: Fatal error: Call to undefined method Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension::addUserProviderFactory() …
Jonathan Petitcolas
  • 4,254
  • 4
  • 31
  • 42
0
votes
1 answer

How to generate propel ORM objects on virtual host with no include_path?

I have a dev server with several virtual hosts on it. Each one needs to be able to run the command: propel-gen ./ creole That script executes some php that reverse-engineers the database... BUT the php it executes needs to be included to do…
lo_fye
  • 6,790
  • 4
  • 33
  • 49
0
votes
1 answer

DDL - can't use delimiter?

I'm trying to create some database triggers post database created, by adding them to a sql file that is called from sqldb.map. However, to create triggers, I need to use the delimiter command to change the delimiter to something besides the…
CargoMeister
  • 4,199
  • 6
  • 27
  • 44
0
votes
1 answer

PropelORMPlugin and "object_actions"?

I'm porting an older Propel and Symfony application that has this form code: generator: class: sfPropelGenerator param: model_class: UserForm theme: default config: fields: …
Tower
  • 98,741
  • 129
  • 357
  • 507
0
votes
1 answer

How do I move the folder to the new site build?

How can I transfer the build folder to another site? The problem is that the name of the database table prefix is sewn into the files and if I have a lot of sites I will have to manually change the data. Is it possible to automatically change the…
Shniperson
  • 549
  • 4
  • 9
0
votes
1 answer

Is it possible to have test_schema.xml in Propel 1.6?

I am using Symfony-2.0 and Propel 1.6. For testing purposes I'd like to have separate schema file. The reason is that with my current schema it is impossible to load dumped fixtures, because process fails due PK and autoincrement: app/console…
Vitalii Zurian
  • 17,858
  • 4
  • 64
  • 81
0
votes
3 answers

Order by in relations PROPEL

I have: # config/schema.yml propel: jobeet_category: id: ~ name: { type: varchar(255), required: true, index: unique } jobeet_job: id: ~ category_id: { type: integer, foreignTable: jobeet_category,…
0
votes
1 answer

Symfony - Propel - Determine current version of propel

Is there a better way of determining which version of Propel that Symfony 1.4 is built upon? Right now I am having to do: $ -> ack -i version /path/to/symfony/lib/plugins/sfPropelPlugin/lib/vendor/ And as of now I am seeing…
Mike Purcell
  • 19,847
  • 10
  • 52
  • 89
0
votes
1 answer

Symfony 2.0.9 and wrong PropelBundle version

I'm having troubles with PropelBundle versions using Symfony 2.0.9. ErrorException: User Deprecated: The PropelBundle uses a new branching model, you should switch to the 1.0 branch (1.0.x versions). For more information, please read:…
duke_nukem
  • 647
  • 2
  • 9
  • 16
0
votes
1 answer

Reverse Propel ORM results in 'Buildfile: /build.xml does not exist'

When calling the following command from within a folder with build.properties file in it # ../propel/generator/bin/propel-gen . reverse I get Buildfile: /build.xml does not exist! Is this because I calling the propel-gen file incorrectly as it…
Jake N
  • 10,535
  • 11
  • 66
  • 112
0
votes
1 answer

add Count to SQL query in Propel

I have in my project old version (1.2) Propel. I would like make query: SELECT city_id, COUNT(*) FROM House GROUP BY city_id I tried: $c = new Criteria; $c->addAsColumn('count', 'Count(' . HousePeer::CITY_ID . ')'); $this->results =…
0
votes
1 answer

Build shema.yml file with current database in memory to compare with available schema.yml

I have been trying to create schema.yml content in memory from a behavior I have written. I want to test if any changes made by a developer to schema.yml comply with the current database fields and foreign key references. I see the task class that…
Nitesh
  • 702
  • 2
  • 7
  • 22
0
votes
0 answers

action object overwrite by component last object in symfony 1.0

I am working on project which is in symfony 1.0 I have created result set in action file as follows $perform = new…
Hardeep Pandya
  • 897
  • 1
  • 8
  • 27
0
votes
2 answers

access to extended class in symfony 1.4

so... I basically follow the practical symfony book, and encountered following problem. I have properly (i guess) installed sfGuardPlugin, built the models, sqls etc, created user and tried to log in with the username and password entered. i got the…
khartvin
  • 551
  • 1
  • 7
  • 20