by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 03 07:07
    Incognito commented #1550
  • Jun 03 07:07
    Incognito commented #1550
  • Jun 03 06:12
    stereomon synchronize #1550
  • Jun 03 06:00
    stereomon synchronize #1550
  • Jun 03 05:49
    stereomon synchronize #1550
  • Jun 03 05:46
    stereomon synchronize #1550
  • Jun 03 05:44
    stereomon synchronize #1550
  • Jun 03 05:23
    stereomon synchronize #1550
  • Jun 03 05:08
    stereomon synchronize #1550
  • Jun 03 04:57
    stereomon synchronize #1550
  • Jun 02 14:39
    PhilinTv milestoned #1550
  • Jun 02 14:38
    PhilinTv milestoned #1557
  • Jun 02 14:36

    PhilinTv on master

    Small fixes for PHP 7.4 Merge pull request #1557 from s… (compare)

  • Jun 02 14:36
    PhilinTv closed #1557
  • Jun 02 13:40
    dereuromark commented #1557
  • Jun 02 08:45
    robin850 commented #409
  • Jun 02 08:45

    robin850 on master

    Typo fix : whish -> wish Merge pull request #409 from Le… (compare)

  • Jun 02 08:45
    robin850 closed #409
  • May 31 12:48
    Levure opened #409
  • May 30 18:05
    rayrigam commented #501
Jeramy Rutley
@jrutley
ok will try thanks
Jeramy Rutley
@jrutley
I assume you meant generated-conf/config.php? I added "require generated-conf/config.php" after the autoload line with the same result
when generating the db, I wrote "linkaudit" as the namespace, so I'm a bit confused why it outputs "linkaudit\linkaudit"
Jeramy Rutley
@jrutley
so after a while I nuked the project and recreated using the "hard" method and discovered enough in there to get me going, with the exception that my customer is using PHP 5.6.x and it failed because of Symfony 4. Forcing it to version 3.4 got me going
pthreat
@pthreat
@jrutley I would name the namespace as vendorName\projectName....
Example: \jrutley\linkaudit....
WTH
@kurokami98
Hello, any new upcoming feature or update on propelorm? It seems this project has stopped from last year.
jstrzal
@jstrzal
Hey guys, I wasted 5 years of life on developing my private project, which only dependency was Propel ORM ()unfortunately DB first, which makes it even worse for migration to doctrine). I beg you for some information on if there is any hope for further development of propel 3. There is really a lot of source code to rewrite, if propel is not maintained anymore. If there is no hope for continuing project with current ORM, I would be really glad to have some info on best approach to rewrite my propel code to another ORM.
Marc J. Schmidt
@marcj
Hi, there is basically no hope Propel 3 will ever be released. Contribution is dying, usage is declining, financial costs increasing, PHP is dying and for more and more people not worth investing their time into it except when they are full-time php devs and use that project in some projects. Also sponsoring PHP stuff is declining as well, almost nobody wants to financially support the development of big php projects, and the investment of a PHP dev into open-source does not return financially back that much anymore. So, Propel is slowly dying as many other PHP projects, and I'm afraid, while looking at the alternatives that are more lucrative for businesses, that will never change. So, take your code, convert to PHP's last standing giants like Doctrine, or switch to better alternatives like typescript&typeorm.
jstrzal
@jstrzal
Thanks for honesty, I am sorry to hear that.Thank you for great job, for me Propel was the best PHP ORM, leaving all the rest behing.
Thanks a lot for years of great work.
Marc J. Schmidt
@marcj
you're welcome!
Crobitaille
@Crobitaille

Good Morning,

Is there anyone who can tell me why Propel sometimes returns an object of one of its generated classes from a query... and other times returns an array?
I can't seem to find any consistancy myself for why it sometimes chooses one way, and other times chooses another.

Marc J. Schmidt
@marcj
Please post the code in question
Crobitaille
@Crobitaille
return ScenarioPermissionsQuery::create()
                ->filterByConnectionName($connectionName)
                ->filterByScenarioName($scenarioName)
                ->findOne($connection);
This returns an array, rather than an ScenarioPermissions object.
return ScenarioPermissionsQuery::create()
                ->filterByScenarioId($scenarioId)
                ->findOne($connection)->toArray();
But this returns a ScenarioPermissions object
(I use toArray() on it to change the return into an array. but without that call... its an object)
Marc J. Schmidt
@marcj
A plain array? That's not possible, findOne has no code to return an Array. You might have overritten something
Crobitaille
@Crobitaille
I haven't modified any of the propel code.
Marc J. Schmidt
@marcj
it also doesnt make sense for toArray() to not return an array but an entity object. I guess there is some code that confuses them. Try to put the critical parts in a reproduceable git repo, then we can try to help
I dont mean propel code, but maybe code in query classes
does your permissions object have only ine column, or an array column?
Crobitaille
@Crobitaille

Yeah that's what I mean, I havent modified the query classes.

No it has 3 columns: id, scenarioName, connectionName.

Unfortunately putting the code in a reproducible manner into a repo isn't possible.
Crobitaille
@Crobitaille
It's fine. I just wanted to know if it was intended behaviour or not. Since it's not I'll just work around it.
not much else I can do. Thanks for the help.
Urs Hofer
@urshofer
trying to do something like this with propel, having a very hard time... Is there a documentation for sub selects somwhere?
    SELECT   *  FROM _contributions as c   
    WHERE
            c._name = 'BLABLA'
            AND c.id IN (SELECT d._forcontribution FROM _data as d WHERE
                (d._fortemplatefield = 11 AND d._content LIKE '%3%')
                OR (d._fortemplatefield = 13 AND d._content LIKE '%5%')
                OR (d._fortemplatefield = 15 AND d._content LIKE '%7%')
                OR (d._fortemplatefield = 18 AND d._content LIKE '%4%')
                OR (d._fortemplatefield = 19 AND d._content LIKE '%1445%')
            )
Urs Hofer
@urshofer
…hm, okay, probably doing sthing like:
$q->where('_contributions.id IN (SELECT d._forcontribution FROM _data as d WHERE (d._fortemplatefield = ? AND d._content LIKE ?))', [15, '%3%']);
Lioxor64
@lioxor64

Hello, my name is Liora and I am currently hunting open source projects for company NeuraLegion (www.neuralegion.com)
We just launched a free annual subscription for open source projects for our AIAST tool NexPloit.

If you are interested, please, reach us on opensource@neuralegion.com!

Thank you for your time and consideration! If you have any questions, please do not hesitate to contact us!

Best,

Kev
@kev-leitch
New to Propel - how would I convert this SQL query into Propel syntax? SELECT COUNT(distinct User_Id) AS DistinctIDs FROM Tbl_User_Answers
bkh
@bkh2js
In ConnectionFactory.php line 43:

  Unable to open connection  


In PdoAdapter.php line 72:

  Unable to open PDO connection  


In PdoConnection.php line 59:

  could not find driver
Hi anyone has this error when generate classes?
Jesse Quinn
@jessequinn
hi guys, quick question, I have recently upgraded from 1.6.4 to 2, and i am trying to wrap my head around some of the changes. Normally i would use a doSelectOne($c); on a criteria, but this no longer works with v2. how can i use a criteria within a query based class?
Alberto Castillo G.
@acastillors_gitlab
Hi, is there a way to get all TableMaps from Propel? I know \Propel::getDatabaseMap() will only load runtime (so previously loaded tables). My goal is to be able to get properties for every model, more specifically create \ReflectionClass from them.
Federico
@pmfederico
I just tried propel2 on PHP 7.4, many errors come up, they are mostly warnings, however there some fatal which are for instance, the use of the parent keyword on a class without a parent
Does anyone know if PR's are still accepted for propel 2
petr zeman
@perseusssss_twitter
I have probably a very dumb question. I have propel installed and managed to successfully reverse-engineer my database so it is working. However whenever I try to start propel init it just keeps getting automatically aborted and I have no idea why. Any tips?
image.png
petr zeman
@perseusssss_twitter
nvm, retarded powershell
Nithrild
@Nithrild
Hello guys! I have a question. You see, I have a site hosted in a shared hosting service. I was already told that I cannot have SSH in my current plan, so I can run things like migrations. My question is: Is there any way to run the migration (or any PROPEL commands) from a .php file? I've been doing some research and for example, for Laravel there's a way to do this, but I'd like to do it with PROPEL. Thanks!
Federico
@pmfederico
@Nithrild Open the command file and add that to a php file, easy, also any hosting that doesn't lets you run command line is utter bullshit
But that seems to be a common rule in Germany
Switch to digital ocean
Nithrild
@Nithrild
@pmfederico Thank you for the answer. I have a question about that though. I cannot find a Command file. I don't really understand how to call the "propel diff", "propel migrate" commands from a file. Can you give me an example of how to do this?
Federico
@pmfederico
@Nithrild how do you run your migrations now?
Nithrild
@Nithrild
On my local computer, I open the console, and in the directory of my project I type the "propel diff" command. This creates the migration file, and then I run the "propel migrate" command. I want to be able to run these commands from a .php file so I can update my production database
Nithrild
@Nithrild
Thank you, @pmfederico . I was able to run the command
Federico
@pmfederico
np
J Skoba
@SpikedCola
hi all! quick question, hopefully there's an easy solution. i'm attempting to "lock out" the changing/updating of certain columns for my model. ideally this would happen in the setXXX() functions (if condition is true, return without making a change). however it looks like there's no hook in the setXXX functions, like there is for preInsert/preUpdate/etc. i tried _call and _set magic functions, but they don't seem to be triggered since the setXXX function exists. i could override each of the setXXX() functions myself, but if the db schema changes i will have to manually fix the overrides. a) does this make any sense, and b) does anyone see a way to accomplish this?
is there perhaps a way to insert code into propel's build process, so i could add my own function/hook when setXXX is generated?
J Skoba
@SpikedCola
i've overridden isColumnModified and that got me half-way there. i can prevent inserting/updating the columns of interest by returning false. however the object's value can still be changed, which could lead to confusion..