1,155 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
39
views
How do I unit test a function which returns a query?
I'm using Propel ORM and I have a function which returns a query, I want to write unit tests for it to check if it spits out the correct query. I can create mock tables and then check if they the ...
0
votes
1
answer
58
views
One To Many + Many to many relationshipd alongside with Propel
I have two tables which have two different relations. A table User, and a Table Job for this example.
I wan't a One-To-Many relationship between them (a User can create Several Job), AND a Many-To-...
1
vote
0
answers
44
views
Propel 1.2 PropePager Issue
a question for the Propel veterans here, since it's a very old version:
I have an issue with the Propel Pager and a having clause. The Criteria is:
$c = new Criteria();
$criterion = $c->...
0
votes
1
answer
156
views
How to save Checkbox data based on click behaviour?
OK, I have a form where the data is persisted into database with create/edit.
On edit page there is a checkbox with name audit_check which is clicked by a user and the logs should be generated.
if($...
0
votes
0
answers
472
views
Having issue Propel Installation in Symfony 5
I'm using following command
composer require propel/propel-bundle
and getting the following error
Problem 1
- propel/propel-bundle[1.5.0, ..., 1.5.2] require symfony/framework-bundle ^2.8.2 -> ...
0
votes
1
answer
132
views
Ñ characters not saving/showing in columns in PHP 7/PROPEL2.0/Oracle 11g
Im newbie using Propel ORM and specially Oracle, cause im used in MYSQL
The Ñ in database(Oracle11g) not showing when I'm saving or querying in PROPEL ORM 2.0
The column type in Oracle is NVARCHAR2
...
0
votes
1
answer
141
views
I have weird Column Name duplicate problem in My Sql Left Join
CREATE VIEW `trainingdetail` AS
select `training_detail`.`id` as `id`
,`training`.`id` AS `training_id`
,`training`.`startdate` AS `startdate`
,`training`.`enddate` AS `enddate`
,concat(`...
1
vote
1
answer
623
views
Support for PHP 7.4? in Propel 1.7.x?
I upgraded to php7.4 on my dev box and am receiving a lot of deprecated errors with Propel 1.7.2. I see there is a closed thread in the support channel indicating fixes are in master, but they sure ...
1
vote
1
answer
217
views
Propel: Class 'Criteria' not found
I'm currently getting to know Propel, but I'm having a hard time getting this to work.
To give a bit of background I want to get the last row of my table 'Message' using Propel. To archieve this I ...
0
votes
0
answers
266
views
Cannot use limit() in conjunction with with() on a one-to-many relationship
Anyone have idea how to use one to many relationship on propel ORM?
I'm running following query to retrieve posts and comments from DB.
$con = \Propel::getConnection('MYDB');
$query = Posts::create()
...
0
votes
1
answer
96
views
PHP Date Object Add 3 Seconds
I want to add 2 seconds for current date object, I am getting data objects as propel foreach array result, this is the object I receive
DateTime Object
(
[date] => 2020年05月22日 09:03:21....
0
votes
0
answers
162
views
For each loop continious but doesn't fill array
Problem
Hey, my array $isActiefErr and $naamErr doesn't fill up after I throw an exception, but the foreach loop does continue to validate the values. I know the foreach loop keeps on looping, ...
0
votes
0
answers
333
views
Php rabbitMq consuming daemon failing with mysql broken pipe error
I'm currently trying to restore the functionality of an old app and part of functionality I can't restore (honestly I'm even not sure it worked properly before) logic to consume rabbit MQ messages. ...
0
votes
1
answer
516
views
Error running Symfony 1.4 propel app under docker
I try to run my old Symfony 1.4 propel app under docker and for this I have in my docker-compose.yml :
version: '3.1'
services:
web:
container_name: Demo_Ads_web
build:
...
0
votes
1
answer
572
views
How to query with multiple databases connection with propel
I have made a lot of researches to read several documentation but I didn't find an answer.
I have 2 databases connected through my propel config. They have the same structure, the same tables.
At ...