Views: 2480
Last Modified: 30.03.2022

To start using the objects you need a described entity only. Just replace fetch with fetchObject in your code:

$book = \Bitrix\Main\Test\Typography\BookTable::getByPrimary(1)
	->fetchObject();

Now $book - is a full-scale object of Book entity, having multiple methods for manipulating its data and establishing relations with other entities.






Courses developed by Bitrix24