Apart from the title,
Thanks for this!! I was wondering why aren't more people making this happen, using PHP 7.4 typed properties is an absolutely fantastic idea!!
Would it be as easy as writing models like?
class Person{
integer $id;
string $name;
Country $country;
}
it would be nice if all tables were autogenerated (like spring-boot and grails etc),
and the usage would be as easy as:
$p = new Person("John", Country.findByName("Australia"));
$p.save(); // or PersonRepo.save($p)
PersonRepo.get(1)
Person.get(1) //even better
other variations:
CountryRepo.findByIdAndName(3, "Australia");
CountryRepo.findByNameLike("Aus%");
CountryRepo.findAllByNameIn(["Korea", "Japan", "Australia"])
GORM(Hibernate based) is one of the best ORMs from the Java/Groovy world, would be nice if can copy those features:
http://gorm.grails.org/latest/hibernate/manual/index.html
Would be interesting to see how it integrates with laravel (I'd rather use PDO than use Eloquent )
Apart from the title,
Thanks for this!! I was wondering why aren't more people making this happen, using PHP 7.4 typed properties is an absolutely fantastic idea!!
Would it be as easy as writing models like?
it would be nice if all tables were autogenerated (like spring-boot and grails etc),
and the usage would be as easy as:
other variations:
GORM(Hibernate based) is one of the best ORMs from the Java/Groovy world, would be nice if can copy those features:
http://gorm.grails.org/latest/hibernate/manual/index.html
Would be interesting to see how it integrates with laravel (I'd rather use PDO than use Eloquent )