propel Questions
1
Solved
I'm building an application in Symfony2 where every user gets its own database, meaning all users have their own set of database credentials. The user doesn't know those credentials, they are store...
3
Solved
Here is my table definition for Propel schema. Column modified has timestamp type (DateTime in PHP) and I'd like to assign a default value to now. I've tried setting it to "now" but I'm getting an ...
1
Solved
I'm currently developing on Windows with WampServer and have Composer working (with OpenSSL), with Propel installed without issue, and everything seems to work fine. However, my project now needs t...
Venezuela asked 7/6, 2013 at 8:30
1
Solved
I have a pretty simple Propel question. I'm storing leads in a database. Those leads have one or more community interests. The tables I'm using are named, 'lead', 'community', and a 'lead_communiti...
1
I have few problems with setting PropelORM to work with multiple databases. I couldn't find anything useful in the documentation.
Generating schemas from multiple databases
I prefer to make a c...
1
Solved
I am using custom SQL to join two tables, apply some business logic to dates, then use the results to hydrate a propel object (collection). Here's my code:
$testtypes = TesttypeQuery::create()->...
2
Solved
I need to force reread data from DB within one php execution, using propel. I already have a bit hacky solution: call init%modelName% for corresponding classes, but want something better.
Is there...
4
Solved
I was always in assumption that it is always a good practice to close database connection, regardless of database/ORM, like mysql_close(), Propel::close() etc.
With reference to one of my other qu...
Yonatan asked 11/9, 2012 at 9:21
1
Solved
I'm using symfony 1.4/propel 1.4 for a project, which was made by other developer earlier. On that project, propel connection is taken by using following code
$con = Propel::getConnection(UsersPee...
Kensell asked 11/9, 2012 at 8:12
1
Solved
I'm using Symfony 2.1 forms with PropelBundle and I'm trying to refactor a form that had a drop-down list of objects (to select from) to instead use a jquery autocomplete field (working with AJAX)....
Vagrom asked 15/8, 2012 at 0:13
1
I would like to know what are the forces and weaknesses of Doctrine 2 and Propel 1.6.
For instance, Doctrine 2 is really user friendly but limits you if you want to go beyond conformism. Doct...
Tacit asked 19/8, 2012 at 11:10
2
Solved
The Propel ORM documentation mentions a neat import/export feature using functions like fromArray and fromJSON, that should allow something like this:
$foo = new Widget();
$foo->fromArray($_POS...
Jewelljewelle asked 28/6, 2012 at 13:35
1
Solved
How do I filter based on a joined table's columns in Propel?
Like:
$results = FooQuery::create()->joinBar()->filterByBarSurname('surname');
1
Solved
I'm using propel master-dev with symfony 2.1.
Is possible to write something like that ? Else how can I add an alias to the select statement.
$products = ProdottinewQuery::create()
->leftJoin...
Demob asked 19/6, 2012 at 10:24
4
Solved
I'd like to integrate Propel with Zend framework. I've seen the integration of doctrine in the past but this post says it seems propel is done a bit differently.
Propel has two things going for ...
Perilune asked 26/9, 2010 at 0:18
5
How can I compile Propel Criteria to clear SQL?
I've tried $criteria->toString(); but this is not I expected.
Also I've tried ModelPeer::doSelectStmt($criteria) but it returned raw sql (required pa...
3
In Doctrine I can do:
public function getCount()
{
$q = $this->createQuery('q')
->select('*')
->addSelect('count(q.name) as count')
->groupBy('q.name')
->orderBy('count DESC'...
4
Solved
I've recently delved into using an ORM in my CodeIgniter application and one i've gone for is Propel. Now this gives me the power to basically use Propels classes as the 'Model' but is this bad pra...
4
Solved
There is a bundle for (Propel) for symfony2,is there sfguard bundle for symfony2
2
Solved
I need to sort a query by 2 columns. Is this possible using propel?
i tried:
$c->addAscendingOrderByColumn(self::COL1);
$c->addAscendingOrderByColumn(self::COL2);
but the second call to a...
Wertz asked 3/1, 2011 at 12:38
3
I'm starting a new project with Symfony2 and I'm not really sure which ORM to choose. I've heard some bad things about Doctrine2, especially when it comes to inheritance and DQL. It seems lik...
Psychomancy asked 2/11, 2011 at 11:34
1
Solved
I'm attempting to install the Propel ORM on CentOS which has a dependency for phing. I've run the following which was succesful:
pear channel-discover pear.phing.info
pear install phing/phing
pear...
Goldarned asked 1/11, 2011 at 12:53
4
Solved
How can I properly switch the newly installed Symfony 1.4 framework from Doctrine (that it is configured for by default) to Propel?
2
I'm trying to create a UNION query using the Propel ORM e.g
$criterion1 UNION $criterion2
Does anyone know how to do this?
2
Solved
i am using Symfony 1.4.8 and Mysql 5.5
i got this error when i run
symfony propel:build-all
You have an error in your SQL syntax;
check the manual that corresponds to
your MySQL server ver...
© 2022 - 2024 — McMap. All rights reserved.