Near as I can tell you didn't do a pull request against Joomla!'s
staging branch but against Joomla!'s master branch (two as far as I
can see). This would have subverted the unit testing and code style
infrastructure designed to ensure we don't introduce new style issues
or break unit tests. What you needed to do is make the pull request
against the Joomla! staging branch not master.
GitHub have done a rather good job of documentation though not always
the most up to date. It does however cover this situation though these
days it's a bit more obvious what the destination repository is:
https://help.github.com/articles/using-pull-requests/
On Tue, Jul 24, 2012 at 8:15 AM, Thomas PAPIN <
thomas...@gmail.com> wrote:
> Hi Radek,
>
> I just discovered this thread. I had the same problem with
> JTable::getInstance( 'user', 'JTable' ), 1 year ago and I raised a ticket
> for that with no success
> Link :
https://github.com/joomla/joomla-platform/pull/268
>
> My solution was quite "easy".
> In the getInstance function of JTable, instead of using JPath::find() and I
> used a new function JPath::findAll().
> JPath::findAll() returns the list of all instances that match when
> JPath::find() returns the first instance that match.
> So in the getInstance all "User Table" classes will be tested for the test
> class_exists.
>
> In your example:
> [0] => /root/administrator/components/com_something/tables
> [1] => /root/libraries/joomla/database/table
> with JPath::find() only [0] is tested => Returns ERROR
> with Jpath::findAll() [0] and [1] are tested => getinstance returns the
> correct class.
>
> As my patch was not accepted to avoid renaming User to User2 or just another
> loading solution,
> I found this little workaround :
> Just at the end of my component code:
> $path = JPATH_ROOT.DS.'libraries'.DS.'joomla'.DS.'database.DS.'table';
> JTable::addIncludePath($path);
> Like this the Joomla Core Table are at the first position in the include
> path array. so other modules or plugins will not be impacted by the
> includepath of my component.