⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

improvement set_relation



Максим Гавриленко
  • profile picture
  • Member

Posted 28 October 2013 - 08:45 AM

it would be nice if you added the ability to make the connection for these tables (similar to set_relation, but a little different):

 

Table 't1':

id, name

 

Table 't2':

id, t1_id, code, nameto

 
It would be desirable that it was possible to add a field to t1, which will be one or more records from t2

exaple

$crud->set_relation_n(array('code', 'name'),'t2','t1', array('t1.id' => 't2.t1_id'));

 

, where:

   array('code', 'nameto') - needed fields. But if array() - is empty, then we got all fields.

 

and then we can get fields from this table like that:

$crud->columns('id', 'name', 't2.code', 't2.nameto');

 

it would be great if you implement this functionality !!! )


Максим Гавриленко
  • profile picture
  • Member

Posted 29 October 2013 - 07:22 AM

техподдержка ресурса участвует вообще в форуме или как? :(


Максим Гавриленко
  • profile picture
  • Member

Posted 29 October 2013 - 08:54 AM

Even one person had the same problem.

 

/topic/2128-relation-1-n-without-normal-form/

 

He has not helped.
Why did the developers of the tool did not seek to improve the functionality, and will not help?


Максим Гавриленко
  • profile picture
  • Member

Posted 30 October 2013 - 11:51 AM

grocery CRUD Author, please answer me


Robert
  • profile picture
  • Member

Posted 11 November 2013 - 11:40 AM

This is 100% free and the dev's work on it on there free time, you cant expect stuff to be added over night


edramirez
  • profile picture
  • Member

Posted 11 November 2013 - 17:56 PM

Hello, ÐœÐ°ÐºÑÐ¸Ð¼ -

 

Your concept can be implemented in a master-detail data model. Entering data is done in one way, gathering the results is another thing. Once data is entered correctly in this format, creating a display becomes easy.

 

Regards,

 

Ed Ramirez


victor
  • profile picture
  • Member

Posted 12 November 2013 - 09:34 AM

Максим Гавриленко, on 29 Oct 2013 - 09:22, said:

техподдержка ресурса участвует вообще в форуме или как? :(

Если ты пожертвуешь средства, то думаю тебе ответят )
Это же free библиотека, которую пишет один человек, у которого это проект скорее как побочный продукт. Ты можешь добавить этот функционал и поделиться им.
Если он будет интересен, то, я думаю, он может появится в новой версии.
В реальности есть столько идей как улучшить эту библиотеку, что она может превратиться в фреймворк))