Firstly, I see some great potential in this library and I hope to be able to integrate it into some legacy php applications not using a framework.
I am trying to support a database schema of an existing application by using the convention overrides $table_name, $primary_key, etc. However, I have set up a $has_many association like this:
Where the RssArchive table has its convention overrides set up correctly. The RssArchive table also has a belongs_to 'RssFeed' association set up that is working fine.
The problem is that my result from calling
$feed_archives = $feed->rssarchives
is always null. I traced the php-ar code to Relationship.php line 273 where the
if (all(null,$condition_values))
line is evaluating to true and causing the return of null. Am I doing something wrong?
Firstly, I see some great potential in this library and I hope to be able to integrate it into some legacy php applications not using a framework.
I am trying to support a database schema of an existing application by using the convention overrides $table_name, $primary_key, etc. However, I have set up a $has_many association like this:
class RssFeed extends ActiveRecord\Model { static $table_name = 'rss_feeds'; static $primary_key = 'feedID';
}
Where the RssArchive table has its convention overrides set up correctly. The RssArchive table also has a belongs_to 'RssFeed' association set up that is working fine.
The problem is that my result from calling
$feed_archives = $feed->rssarchives
is always null. I traced the php-ar code to Relationship.php line 273 where the
if (all(null,$condition_values))
line is evaluating to true and causing the return of null. Am I doing something wrong?
Thanks! Jordan