propelorm / propellaravel Goto Github PK
View Code? Open in Web Editor NEWPropel 2 integration for Laravel framework
License: MIT License
Propel 2 integration for Laravel framework
License: MIT License
A model factory would be really nice too. I don't think this is available right now?
This project is still open?
Any news?
Background
So I am a "version stuck".
We have a 6 year old web application with 100+ table and 20Gb of data. The web framework needs changing and the frontend UI needs needs replacing.
Currently leaning towards laravel (because as a web framework it seems OK, and popular so easy to hire staff, probably with a vue.js frontend...i know don't ask).
I have been using propel since 1.2 when Hans transpiled it all from Apache Torque. Back then we used to contribute. (The whole idea of integrating the instance pool was ours). The legacy application is based on propel 1.7. We never changed to propel 2, because a) no need 1.7 is just fine. b) propel2 is alpha, we need stability for the ORM. We don't mind active record, we like all the generated code, we like the ModelQuery classes. We know the vageries like accidental cascade save via cached instances in the pool..etc. We use NestedSet and Sorted behaviours...It's all good.
We hate doctrine, because it is a black box. In propel i can just delve into the classes and start debugging if I don't understand, it becomes obvious in < 10min. Also Doctrine is way slow compared to propel for obvious reasons. We don't find that the Base* classes get in the way of the domain model (mostly).
Eloquent seems terribly incomplete compared to Propel 1.x (or doctrine obviously). It really doesn't give you much at all. Might was well write SQL?
So ideally we would actually like to stay with propel 1.7 and use our existing codebase. That part is not really broken. But switch to laravel.
Question
Sorry, long intro, here goes the question:
Could this PropelLaravel package be easily adapted to integrate Propel 1.7 into Laravel 5.5?
I realise you wouldn't do that, but it looks like there is not a million lines of code here, so maybe we can just pick this up, fork it and then we have what we think(!) we want: Propel 1.7 + Laravel 5.5.
Does that make sense?
Many Thanks
I'm trying to install propel-laravel
through composer in my Laravel 5.2.*
framework, but it's not working for me.
First of all I tried to do what the documentation said, editting my composer.json
like so:
"config": {
"preferred-install": "dist"
},
"minimum-stability": "alpha"
But when I do a: composer require propel/propel-laravel
it seems that it can't find the package. I have to do this in order to install propel-laravel
:
composer require propel/propel-laravel:~2.0.0-alpha5
Now it's able to download the package, but I'm getting the following error during the installation:
Problem 1
- Installation request for propel/propel ~2.0.0-alpha5 -> satisfiable by propel/propel[2.0.0-alpha5].
- Conclusion: remove symfony/finder v3.0.4
- Conclusion: don't install symfony/finder v3.0.4
- propel/propel 2.0.0-alpha5 requires symfony/finder ~2.3 -> satisfiable by
symfony/finder[v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3
.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3
.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3
.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.36, v2.3.37, v2.3.38, v2.3.39, v2.
3.4, v2.3.40, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v
2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v
2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8
, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2
.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11,
v2.7.12, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0,
v2.8.1, v2.8.2, v2.8.3, v2.8.4].
- Can only install one of: symfony/finder[v2.8.0, v3.0.4].
- Can only install one of: symfony/finder[v2.8.1, v3.0.4].
- Can only install one of: symfony/finder[v2.8.2, v3.0.4].
- Can only install one of: symfony/finder[v2.8.3, v3.0.4].
...
...
- Can only install one of: symfony/finder[v2.7.8, v3.0.4].
- Can only install one of: symfony/finder[v2.7.9, v3.0.4].
- Installation request for symfony/finder (locked at v3.0.4) -> satisfiable
by symfony/finder[v3.0.4].
Installation failed, reverting ./composer.json to its original content.
Anyone idea how I can fix this problem?
Can't use the package with Laravel 5.3.
Problem 1
- Conclusion: remove propel/propel 2.0.0-alpha5
- propel/propel-laravel dev-develop requires propel/propel ~2.0.0-alpha5 -> satisfiable by propel/propel[2.0.0-alpha5].
- propel/propel-laravel dev-develop requires propel/propel ~2.0.0-alpha5 -> satisfiable by propel/propel[2.0.0-alpha5].
- Conclusion: don't install propel/propel 2.0.0-alpha5|keep propel/propel 2.0.0-alpha5
- Installation request for propel/propel-laravel dev-develop -> satisfiable by propel/propel-laravel[dev-develop].
<table name="table_name" phpName="TableName" readOnly="true" skipSql="true">
...
</table>
I'm not sure what I was doing.
Hi,
Do you have the way to auto map field before save?
Not do like this for all fileds ($author->setFirstName('Leo'); ..... )
Laravel 5.4 with propelLaravel last version
before built :
in configuration the default path is 'phpDir' => app_path('Models'),
but after i built the model it generate file and write namespace like this-> namespace App\Modules;
it's bug that i found.
pls solved this issue or tell me how to fixed
Thank you.
Hi,
I'm having some issues integrating Propel in Laravel 5.1.24. I added "minimum-stability":"alpha" in composer.json and added Propel laravel using "composer require propel/propel-laravel dev-master".
Any attempt to run Laravel or call Artisan commands after that gives me this output (real project path is replaced with /path/to/project):
PHP Warning: array_filter() expects parameter 1 to be array, null given in /path/to/project/config/propel.php on line 83
PHP Warning: array_map(): Argument #2 should be an array in /path/to/project/config/propel.php on line 84
PHP Fatal error: Unsupported operand types in /path/to/project/vendor/propel/propel-laravel/src/RuntimeServiceProvider.php on line 74
It seems that the issue is related to app('config')->get('database.connections'), which is NULL when calling var_dump() from propel.php. Replacing propel.php with return []; gives no errors, but obviously doesn't work. Echoing a message in propel.php and database.php reveals that propel.php is loaded before database.php
The project is running on a Ubuntu 14.04 LTS server with PHP 5.5.9. composer.lock file says that propel/propel is 2.0.0-alpha5 (reference 75f775cf6de41595d1240885eea5fa5d475d228d), propel/propel-laravel is dev-master (reference 68a1d0e) and laravel/framework is 5.1.24 (reference 875baf2d1645ce23e2ec0bf94fa7bb3e7fbfd6ed).
Any suggestions? Many thanks!
Have you intention to continue support for this project?
I was planning to integrate it in my projects.
Thx
In develop branch, the config/propel.php is broken.
No connection defined for database "mysql". Did you forget to define a connection or is it wrong written?
In the configuration is expected "default" and not "mysql" but the default should be "mysql"
The configuration in master branch is better.
If the init process php artisan propel:laravel:init
is changing Laravel Auth to Propel it should also add the tables users
and password_reminders
to the default database/schema.xml
file while creating it.
https://github.com/propelorm/PropelLaravel/blob/develop/resources/auth_schema.xml
(this link might be outdated in the future because it links to the develop
branch)
new Laravel Scout would be great integration!
propel2 works, but...
copy paste from other bug I filed on Propel3
hello, I'm looking at both versions of PropelLaravel(develop and main branches) which make use of propel2 StandardServiceContainer and propel3 does not implement this.
I see some of the servicecontainer functions(from propel2) present in propel3 Runtime\Configuration class.
since PropelLaravel is specific to laravel and requires it, maybe the service container present in "illuminate" can be used https://laravel.com/docs/5.6/container
help, please?
When I try and run any artisan command after installing on Lumen 5.x I get
PHP Fatal error: Uncaught exception 'ErrorException' with message 'array_filter() expects parameter 1 to be array, null given' in /home/donal/dev/api/vendor/propel/propel-laravel/config/propel.php:82
Will there be an update to support Laravel 5.5?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.