Questions tagged [Propel] (9)

0
answer

Symfony 1.4/Propel — the problem with the links

Hello. Returned to elaborate on the Symphony after a long break and then faced a problem that couldn't decide and nothing googled. So there's a Datasheet: #some periodic event, for example, a music festival<br> event:<br> id: ~<br> name: {<br> type: LONGVARCHAR,<br> required: true<br>...
edd.Tro asked October 8th 19 at 02:57
2
answers

Global filters in Propel ORM

Started to learn this ORM, and it seemed very delicious. But the question arose: is there a way using Propel to implement a mechanism of global filters. Let me explain with an example. Let's say I make a SaaS. I have a dozen models, each of which has a field company_id, obviously, showing affiliation to the company. Thus I ...
dariana96 asked October 1st 19 at 01:00
1
answer

How to run the propel orm in xampp?

There is a project made using propel orm, copy the entire folder in xampp. But gives an error Fatal error: Class 'Propel\Runtime\Propel' not found in C:\WebServer\htdocs\altayctf-school\generated-conf\config.php on line 2 What to do?
tierra_Schill asked September 13th 19 at 13:43
2
answers

A lightweight PHP Data Mapper ORM?

Advise lightweight ORM for PHP for starters. Doctrine while there is no desire to learn, and to project it on the heavy side. Preferably supported by the developer and with the normal documentation
Alia.Brakus29 asked September 9th 19 at 20:17
1
answer

How to solve the problem with the DB connection Propel 2.0?

Good day to all. Decided to work with Propel 2. Did everything according the documentation. Generated setup using propel init. Created a model from an existing database. All went well. But when trying to work with the model I receive an error.PHP Fatal error: Uncaught exception 'Propel\Runtime\Exception\RuntimeException' wi...
reba asked August 12th 19 at 15:54
0
answer

In Propel2 to work with multiple connections?

actually have three connection test,develop,production 1. depending on the site to connect your connection option? 2. as through the console to forcibly specify a connection for example when you migrate?
lois.Gusikowski11 asked July 12th 19 at 23:25
0
answer

The sample timestamp to propel?

Good evening, costs task to implement a selection filter from the database. Features: 1. input (date)/(datetime) 2. The cell in the database('Mydate' int) containing the unix timestamp Prim( 1460407052 ). To work with the database used by propel An example of my use$date = strtotime($filter['date']); $query->filterByMyd...
beryl60 asked July 12th 19 at 20:16
1
answer

Okay Propel. How to generate a model described by an xml schema if you fall a mistake?

Hello dear programmers) Wrote the database schema for sang in xml format try to generate model, but the crowed falls. Exceptionvagrant@wheezy:/usr/share/nginx/www$ composer model-build > vendor/bin/propel model:build --config-dir=application/configs You are running propel with xdebug enabled. This has a major impact on ...
Lamar44 asked June 20th 19 at 14:01
1
answer

How to get propel to escape the table name to the query that the name does not coincide with the reserved word?

Hi all. please tell me the solution to this problem, can someone faced with it, How to get propel to escape the table name to the query that the name does not coincide with the reserved word? There is a table `Option` When trying to write $models = OptionQuery::create()->orderByName()->paginate($page, self::PAGE_SIZE_...
Lamar44 asked June 20th 19 at 13:51
  • 1