Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 16 21:46
    SkyFoxvn synchronize #504
  • Apr 16 21:20
    SkyFoxvn synchronize #504
  • Apr 16 21:06
    SkyFoxvn synchronize #504
  • Apr 16 19:25
    SkyFoxvn synchronize #504
  • Apr 16 15:43
    SkyFoxvn synchronize #504
  • Apr 16 15:34
    SkyFoxvn synchronize #504
  • Apr 12 14:53
    SkyFoxvn synchronize #504
  • Apr 11 12:24
    mringler edited #1706
  • Apr 10 05:31
    nederdirk closed #1713
  • Apr 09 17:24
    jwong-dayspring closed #494
  • Apr 09 16:39
    mringler commented #1713
  • Apr 09 16:31
    mringler opened #1724
  • Apr 09 12:26

    dereuromark on master

    Added support for keytype in th… fixes in #1672 Merge pull request #1723 from m… (compare)

  • Apr 09 12:26
    dereuromark closed #1723
  • Apr 09 10:35
    mringler commented #1704
  • Apr 09 10:26
    mringler synchronize #1723
  • Apr 09 10:25
    mringler synchronize #1723
  • Apr 09 10:23

    dereuromark on master

    Fix CS (compare)

  • Apr 09 10:23
    mringler synchronize #1723
  • Apr 09 10:21

    dereuromark on master

    Show names of uncommitted migra… Merge pull request #1677 from D… (compare)

Ryan Rentfro
@SourceCode
Just a heads up - some symfony stuff seems to break with the latest packages of propel + symfony config/finder/filesytem - thinking its config - stackoverflow details here: https://stackoverflow.com/questions/62280493/fail-to-run-propel-command
Adrian - you can also write a behavior that can do that automatically if its a pattern you need to use all over the place.
Rolling back the 3 packages I highlighted in Stackoverflow fixed the issues in that thread btw.
Ryan Rentfro
@SourceCode
all of them back to v3.4.22
Adrian Padurean
@Securiteru_gitlab

Adrian - you can also write a behavior that can do that automatically if its a pattern you need to use all over the place.

I'm already on that path, I'm using Redis and I'm trying to integrate a new behaviour. Can you suggest a propel2 guide in order to achieve this?

Thank you for the feedback!
Ryan Rentfro
@SourceCode
http://propelorm.org/documentation/06-behaviors.html - check this out - use a pre and post hook, what you want to do is a have a check method for redis cache in pre and in post you want to write if you ended up doing a read (or whatever it is you are wanting to cache).
The user contributed provide some great examples as well: http://propelorm.org/documentation/cookbook/user-contributed-behaviors.html
Another thing to consider (based on what you are trying to accomplish) is that you can also cache things client side in a browser via local storage.
We do that for things like a menu that has items with "previously visited items" - we don't care to store that, but the user finds it helpful
Denis Turkov
@PhilinTv
Hello everyone,
Propel2 like a Phoenix got the first release in recent years with PHP7.4 and Symfony5 support.
https://github.com/propelorm/Propel2/releases/tag/2.0.0-alpha9
http://propelorm.org/blog/2020/06/25/propel2-alpha-9-is-released.html
In case of any compatibility troubles, you know what to do https://github.com/propelorm/Propel2/issues/new
:)
Daniel Rose
@daniel-rose
Hello everyone,
how can i add a subquery to a where clause?
J Skoba
@SpikedCola
Hi all, i'm trying to override the mapping between Propel types and native SQL types, per the section at the bottom of http://propelorm.org/documentation/10-configuration.html
When I try and specify the new class to be used
propel.platform.class = propel.engine.platform.${propel.database}Platform
I subsequently get an error when running propel build: Unrecognized option "platform" under "propel". Available options are "database", "exclude_tables", "general", "gene
rator", "migrations", "paths", "reverse", "runtime".
J Skoba
@SpikedCola
so i think the correct key is propel.generator.platformClass .. filed an issue on github so docs can be updated. ty for the great orm!
EDILSON PEREIRA DA SILVA
@EdilsonLab_gitlab
Good Morning. I can't get propel to work with php5.6 on linux mint. Unable to connect to the specific sql server: could not find driver
I'm using mysql
Denis Turkov
@PhilinTv
Hey @EdilsonLab_gitlab , unfortunately, this could happen. Propel2 won't support EOL dependencies. It's probably is a good time to migrate to a php7.x.
Jazzgeir
@Jazzgeir
In order to stay within lifespan, you'll need to migrate to php7.2 or newer, in fact
This fits well with the recent upgrade of Propel, btw. :-D
propelorm.org actually says: "A highly customizable and blazing fast ORM library for PHP 5.5+."
J Skoba
@SpikedCola
how can i use paginate() along with saving , eg to process rows that have a null value? i tried incrementing page, this works but stops halfway through the result set.
eg. i want to process 1k rows at a time. before doing anything, my query returns 10k rows to be processed. paginate & saving works on the first 5 pages/first 5k rows, but on the 6th page it stops working. i guess its because the query now only returns 5k rows, so page 6 is nonsensical.
maybe this is just not the right use for paginate, i should get rows and process until there are no more left.
J Skoba
@SpikedCola
hey all, i'd like to start unit testing some of my more complicated business logic. currently i am working across two databases. propel handles this really well. how will this work for testing? setUp and tearDown will need to do some setup/cleaning on 2 databases. it doesnt look like the sample tests would work in my case. any suggestions?
PavanTatikonda
@PavanTatikonda
Hello Everyone, Need some help on the following (we are using symfony-1.0.21, propel-1.2.1, creole-1.14):
  1. Where could I look for connection pool related settings for propel
  2. How could I pass updated password after Propel::getConnection() is called
    Scenario is, during application start-up we fetch password from aws secrets manager and calling "Propel::getConnection()" and at a later point of time the password in secrets manager will be changes and new connections from application should be able to override the new password from secrets manager (Note:- We are able to fetch latest/modified password from aws secrets manager but wondering how could I pass that to Propel::getConnection() ). Any suggestions/inputs would be helpful!
Ryan Rentfro
@SourceCode

I have noticed an issue in propel/propel/src/Propel/Generator/Model/Table.php - involving hasCompositeKey and when a table is missing it, it never makes it to its exception (foreignTable is null).

if ($foreignTable->hasCompositePrimaryKey()) is the check that is the issue in the scenario. I am going to try and send a MR in for it, but its pretty edge - but debugging it required diving as the exception / error was useless to indicate where it happend.

Ryan Rentfro
@SourceCode
[Propel\Generator\Exception\BuildException]
Table "contact_controls" contains a foreign key to nonexistent table "company"
This is an example of the message expected in the situation.
Ryan Rentfro
@SourceCode
PR sent
EDILSON PEREIRA DA SILVA
@EdilsonLab_gitlab
Good afternoon! I have two banks practically the same, however one needs to get data from the other's table. Is it possible with propel using the same connection? I would like that whenever I do something on a certain table, they do it on the other bank. Could someone light my way? Thanks (I use mysql)
not bank, databases
EDILSON PEREIRA DA SILVA
@EdilsonLab_gitlab
I want Join query across different Database...
J Skoba
@SpikedCola
hi all, is "collection" a reserved keyword for propel class names?
J Skoba
@SpikedCola
*reserved suffix that is. i dont seem to be able to name a class "Product" and another class "ProductCollection", it seems to conflict with propel's internal Collection class
Robert Butler
@lighth7015
So question, how do I enable debugging for pgsql?
Tuğca Eker
@tugcaeker_twitter
Hi, I'm curious about "classPrefix" feature on the generator. It seems like broken and not adding the prefix to filenames and also class names.
Is there any documentation about it? Or maybe some examples?
Mark Sch.
@dereuromark
Hey guys. We are about to finalize the PHP8 support and the upcoming alpha-12 release.
Any last topics that need to go into that? Please also help to look/review into existing PRs and tickets here.
Jazzgeir
@Jazzgeir
It's great to hear that you're working on Propel. I have bumped into several "irregularities", but didn't report them. You're not always in the "mood" for error reporting etc. ;-)
The only concrete thing I can remember right now is the name space collisions that take place between foreign keys and field/column names. I solved it by "phpRenaming" the columns in question.
Joel DeSante
@JoelDesante
Hi, Propel seems to be regenerating all the files (instead of just the BaseClasses) which results in all my work being deleted when I make schema changes. Is there some setting that I might have turned on by accident?
Nevermind, this seems to be a ID10T error
My script was deleting the entire directory, then regenerating
Daniel Rose
@daniel-rose
Hi here, is there any possibility to generate orm classes without config and database connection?
Jazzgeir
@Jazzgeir
@daniel-rose, why would you create the ORM classes without config and connection?
ygnas
@ygnas:matrix.org
[m]
PdoConnection.php line 82: SQLSTATE[HY000] [2002] Connection timed out
could someone explain me this
always get this after ~30s
that's when i try to reverse database
and db is very small
for a test