Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this project dead? #2014

Open
phpfui opened this issue Aug 6, 2024 · 21 comments
Open

Is this project dead? #2014

phpfui opened this issue Aug 6, 2024 · 21 comments

Comments

@phpfui
Copy link

phpfui commented Aug 6, 2024

Lots of PRs with no comments or merging. Open issues for bugs and even fatal errors. See #2009

Looks like the old Propel has not been updated for 5 years.

Any insights?

@DarkAxi0m
Copy link
Contributor

I would not say it's dead, maybe not as active as it once was.
There was a realise back in March

@phpfui
Copy link
Author

phpfui commented Aug 6, 2024

It seems like the original creators have moved on, so not sure who is actively in charge. I looked into the issue I found (static call of member method in delete) but did not see an easy fix. This is kind of basic functionality that does not work, so I wondered what is going on with the project.

My interest is benchmarking the package, so not using it in prod. More curious than anything else. It is sad we start stuck with slow and bloated ORMs like Eloquent.

@larryzoumas
Copy link

larryzoumas commented Aug 7, 2024

I love Propel but I am using it in production and the writing seems to be on the wall that further updates to PHP core will render it kind of obsolete without a major rewrite.

What is the closest thing out there that is maintained? Anybody ever use doctrine-active-record?
(https://github.com/symlex/doctrine-active-record)

I tried to use the stand-alone Eloquent package but it doesn't seem to support migrations which is kind of a deal killer. Alternatives?

@phpfui
Copy link
Author

phpfui commented Aug 7, 2024

I had the same problem and one reason I did not consider Propel (but it was closer than most to what I wanted) as it looked like a dying project. I searched far and wide and found nothing to meet my needs (fast and low memory footprint), so I wrote my own: https://github.com/phpfui/ORM You can check out some of the philosophy behind it on my blog starting here: https://blog.phpfui.com/getters-and-setters-vs-public-access

Check it out to see if it meets your needs. A slightly different approach than the memory hogging repository models you see most ORMs taking.

@larryzoumas
Copy link

larryzoumas commented Aug 8, 2024

OMG phpfui. I don't even know what to say except, umm, thank you? Will definitely check it out.

@phpfui
Copy link
Author

phpfui commented Aug 8, 2024

Let me know if you find any issues. I think it is fresh take on ORMs. Active Table and database cursors are key to reduced memory usage.

@fsmeier
Copy link

fsmeier commented Oct 30, 2024

Heyhey,
very good question :)

This project is not dead - yet, it is lacking active maintainers and moderators.

There is a very small group of people taking care of security issues and php updates because of business needs. But sadly currently no further resources to advance the project. So help is very welcome!

All the best,
Florian

@markovicdenis
Copy link

Honestly, it's the best ORM out there. I tried to find alternatives as well, but nothing comes close. I would suggest modernize the page and it should attract new users/maintainers :D

@phpfui
Copy link
Author

phpfui commented Nov 12, 2024

I agree that it was one of the better ORMs out there. But right now you can't delete an Active Record. Also it has a lot of boiler plate to set up and does not really allow for easy updates of source.

I solved all these issues in my ORM. I am trying to benchmark Propel2, but it currently does not work enough to benchmark it.

@markovicdenis
Copy link

I agree that it was one of the better ORMs out there. But right now you can't delete an Active Record. Also it has a lot of boiler plate to set up and does not really allow for easy updates of source.

It has very powerful generator classes whcih can be extended. You can add any method you want in the generated queries, models, tablemaps etc. Specially a static delete method. That would be so easy to add.

@phpfui
Copy link
Author

phpfui commented Nov 13, 2024

It is overly complex (like most PHP ORMs) and broken unfortunately. And no one is maintaining it.

@oojacoboo
Copy link
Contributor

oojacoboo commented Dec 7, 2024

In reality Active Record is a broken pattern. We migrated to Doctrine (partially) a while back and are much happier. There is a reason it's not maintained - everyone moved to DataMapper and Doctrine years ago. It started with Symfony switching to Doctrine as the primary ORM, away from Propel. That was the beginning of the end.

@markovicdenis
Copy link

markovicdenis commented Dec 7, 2024

In reality Active Record is a broken pattern. We migrated to Doctrine (partially) a while back and are much happier. There is a reason it's not maintained - everyone moved to DataMapper and Doctrine years ago. It started with Symfony switching to Doctrine as the primary ORM, away from Propel. That was the beginning of the end.

Luckily PHP adss features very slowly so we can still keep using Propel for then next decade 🤣 With a few fixes here and there. Either way, PHP itself is a broken pattern. This is the last time I do anyhthing with it. I am switching to c# or something else.

@oojacoboo
Copy link
Contributor

Nothing wrong with PHP these days. But if you're looking at this Propel repo as an example of what PHP is today, you're getting a really distorted view of reality.

@markovicdenis
Copy link

Nothing wrong with PHP these days. But if you're looking at this Propel repo as an example of what PHP is today, you're getting a really distorted view of reality.

I know what PHP is. And given the chance to start the project over, I'd chose C# 10/10 tiems, since I wouldn't have to worry about Microsoft dropping support ofr EF core anytime soon and switching it for soemthing else. Also, C# is miles ahead in terms of language features.

@phpfui
Copy link
Author

phpfui commented Dec 8, 2024

I can understand C# users. A decent language now, but was Windows only for a long time. Also not a fan of Microsoft's constantly changing interfaces. Seems you only get about 5 years out of something before they change to some new and "improved" way that is completely incompatible with your years of effort.

I started this issue asking about the status of this library, and now I know it is pretty dead. Thanks for the insight.

But I will say PHP is easy to work with, but I tend to write code that looks like C++, so I don't see most of the issues people have with PHP written by newbies who think JavaScript is a good language.

@netbrothers-tr
Copy link

We have migrated multiple projects (different frameworks) from Propel to Doctrine. There has been no problem at all. IMO picking on PHP is out of place here, @markovicdenis, because you can definitely create modern software with PHP that runs virtually everywhere. But it's a good thing, you feel comfortable and satisfied with C#.

@larryzoumas
Copy link

Hi guys! I just want to thank the original Propel team if they are reading this. It was a truly spectacular piece of software in its time. Truly inspirational.

I am just now migrating a large project from Propel to Doctrine because it seems like there is no upgrade path beyond PHP 8.2 and I want to stay current. The experience has been time-consuming but AI helps... a lot. I would encourage others to do the same and get on with your lives. You can't live in the past!

And finally... whether you code C#, php, python, or whatever... just remember: Star Trek II: The Wrath of Khan was the best film ever.

@smhg
Copy link

smhg commented Dec 10, 2024

I am just now migrating a large project from Propel to Doctrine because it seems like there is no upgrade path beyond PHP 8.2 and I want to stay current.

@larryzoumas I am using Propel 2.0.0-beta4 on PHP 8.3 (with Symfony 7.1) and it works just fine for me. What doesn't work for you?

@larryzoumas
Copy link

larryzoumas commented Dec 10, 2024 via email

@smhg
Copy link

smhg commented Dec 11, 2024

@larryzoumas a fix for this was merged into master yesterday. Hopefully a new beta release can soon follow!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants