Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorark0n3
     
    Hi,
    I'm a new Akelos enthusiast, I'm unable to think to my previous days without this awesome framework! If I'm able to get where I want, it could exponentially increment my productivity with PHP, but, most important at all, reduce the common frustration you get when doing the same things over and over again.. ;D

    I'm discovering the easiest features of the framework, and trying to get a list of rows with their usual join: for example, if I have a table containing books (id, author_id) and another one called authors (id, name) I'd like to have Akelos to get rows automagically with their relational values. In particular I'm focusing on the getContentColumns() function.. I know I can use books.author.name but I'd like to have something more transparent and "maintainable", as this should be the framework aim, or not??

    I forgot to say that I already made up the models, i.e. the relations as $belongs_to and $has_many (they're already ok as I use them with the special form books.author.name)

    Thanks to everyone, and my vivid compliments to the framework author: this is the second summer I go to Barcelona.. splendid city, splendid people!!
    • CommentAuthorKaste
     

    I'm not sure what you're looking for. Actually you can override getContentColumns in your Model and this is what you usually want. If you're looking for f.i. $book->author_name then you're one step beside the ActiveRecord pattern. That means a more complex column-mapping. You can do this (and I did) but thats handcrafted code.