![]() Now that I understand Laravel environment slightly better, I thought I'd share my experience. I'd love to hear from the experts if that can be done (automatically of course). Although I can use reliese/laravel to generate Model classes for my database, the tool still does not generate class members against table columns, so I do not get auto-complete benefits. The actual problem that I posted this question for still remains unresolved. Cannot see how PHP's different approach fits together with OOP. All those languages would throw a compile-time error straight away saying something like Type X does not contain a member named Y. I have used C++, VB, C#, Java among several other languages and haven't seen that behavior anywhere else. $post->NonExistingMember = SomeValue runs okay this would not even compile in most other languages that I know). Plus some of the comments I posted were due to my ignorance about PHP's (strange IMO) approach about member access I just found out that PHP does not complain about non-existing class members and instead generates them on the fly (e.g. To the people who answered my question, thanks a lot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |